User Profile

Collapse

Profile Sidebar

Collapse
James Bowyer
James Bowyer
Last Activity: Feb 4 '14, 12:00 PM
Joined: Nov 2 '10
Location: England
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I'm not sure at which point the code crashes, it doesn't enter debug mode, Access stops working, and needs to be shutdown.

    It would be much simpler to sort if it crashed normally!
    See more | Go to post

    Leave a comment:


  • OutputTo acreport crashes access when filtered

    I need to only print one page of a report, not the whole thing, but do so automatically. Annoyingly, I can't seem to get it to work!

    This:

    Code:
    DoCmd.OutputTo acOutputReport, "rptmouldcurrent", acFormatPDF, "C:\Temp\Test.pdf", False
    works ok, but prints out all reports, not just the one I want.

    So, I tired this:
    Code:
    DoCmd.OpenReport "rptmouldcurrent",
    ...
    See more | Go to post

  • James Bowyer
    replied to Too many records? Or something else
    Long time between posts, but, we've compacted and repaired both front and back end, and are now trying to use it on a non terminal services machine, but no matter what machine we use, some forms still open blank, despite them appearing fine in the tables. Any other reasons why this should happen?
    See more | Go to post

    Leave a comment:


  • James Bowyer
    replied to Too many records? Or something else
    Its on a terminal services server, so rebooting is going to be fun (but necessary!), completely forgot about compact and repair, so I'll try that first, on both front and back ends.
    See more | Go to post

    Leave a comment:


  • James Bowyer
    replied to Too many records? Or something else
    Access 2010, MDB file format. 15MB back end db size, but thats lots of tables, no attached files.
    See more | Go to post

    Leave a comment:


  • James Bowyer
    started a topic Too many records? Or something else

    Too many records? Or something else

    A database I created a while ago is now having problems with new records, they are saving properly, and show up in the tables ok, but when you try and go back into them, they are showing up as blank. However, earlier records aren't. I'm beginning to think that there may be too many records for Access to cope with, but I though there was no limit (within reason). There are currently just over 1300 rows in this table, and 42 columns, of which one is...
    See more | Go to post

  • Fortunately I've just discovered my spare machine, despite being 64 bit, has a 32 bit access install. Which is helpful.
    See more | Go to post

    Leave a comment:


  • I'll try and look into the virtual machine idea. Its bizzare, I've created databases on my 64 bit machine which work fine on other computers, which I'd always assumed to be 32 bit, and I've never had an issue until now with a 64 bit or 32 bit machine (in fact, I'm pretty sure the machine that I originally created it on was 64 bit, although the install of Access must have been 32).

    Why can't everything just work?!
    See more | Go to post

    Leave a comment:


  • Access 64 bit is already installed on my PC, Could I install a 32 bit version on my machine?
    See more | Go to post

    Leave a comment:


  • James Bowyer
    started a topic Running a 32 bit database on a 64 bit machine

    Running a 32 bit database on a 64 bit machine

    I have a database I originally created on a 32 bit machine, which needs the front end updating, but my computer is 64 bit, and so therefore none of the code runs. However, I don't want to convert the database to 64 bit if I can help it, as all the machines it will be running on are 32 bit, I just need to edit it. All are running Access 2010, and windows 7.

    Is there any way of editing it on my computer? Or will converting it to a 64...
    See more | Go to post

  • James Bowyer
    started a topic Date comparing Problem

    Date comparing Problem

    I'm having a problem where two dates that (I think) should be able to be compared against each other (I'm trying to narrow down a set of results by a date to/from). However, it doesn't seem to work.

    To add confusion, if I make the input text box an Unbound box, with a data input mask instead, it works.

    Which is all very well, but the calendar that pops up when you click on a Date box is rather essential in this case,...
    See more | Go to post

  • James Bowyer
    replied to Procedure Too Large Error
    Hi Pat,
    Yes that does help! I was hoping that I would only need to define the variables in the top subroutine, but never mind, not too much of a hardship! I assume that same would be for recordsets that I have called?

    James
    See more | Go to post

    Leave a comment:


  • James Bowyer
    started a topic Procedure Too Large Error

    Procedure Too Large Error

    I have a (very) complicated bit of calculation script which has just come up with the error "Procedure Too Large"

    Clearly, I need to split it into smaller subroutines.

    However, having never done this, I need to ask a few questions.

    1. are any variants and recordsets that I have called in the initial subroutine still accessable as normal?
    2. are subroutines that run within subroutines counted...
    See more | Go to post

  • I got Run time error 438: object doesn't support this property or method"

    Using it in this way:
    Code:
    Private Sub Command0_Click()
    
    Dim ExcelSheet As Object
    Set ExcelSheet = CreateObject("Excel.Sheet")
    ExcelSheet.Application.Visible = True
    ExcelSheet.Application.Cells(1, 1).Value = "Customer"
    
    With ExcelSheet
        .ActiveWorkbook.Worksheets.Add
    ...
    See more | Go to post
    Last edited by James Bowyer; Sep 4 '11, 05:17 PM. Reason: code tags wrong way!

    Leave a comment:


  • Creating multiple Excel sheets (same workbook) from Access

    I am using the following code to create an excel sheet:

    Code:
    Dim ExcelSheet As Object
    Set ExcelSheet = CreateObject("Excel.Sheet")
    ExcelSheet.Application.Visible = True
    ExcelSheet.Application.Cells(1, 1).Value = "Customer"
    ExcelSheet.Application.Cells(1, 2).Value = [CustomerName]
    'Again repeated lots of times for various different values
    
    ExcelSheet.Application.ActiveSheet.Protect
    ...
    See more | Go to post

  • Ah, apologies, I should have marked it as closed!
    See more | Go to post

    Leave a comment:


  • Fixed it,
    used Instr in the following way:

    Code:
    Dim areastring As String
    areastring = Me.CboxArea
    
    Dim searchingfor As String
    searchingfor = "IG"
    
    Dim test2 As Variant
    test2 = InStr(1, areastring, searchingfor)
    MsgBox test2
    which then differentiates between the two values.
    See more | Go to post

    Leave a comment:


  • Criteria in a dlookup to look at part of a cell only

    I have the following code
    Code:
    Dim test As Integer
    test = DCount("area", "Baydetails", "Area='IG'")
    Select Case test
    Case Is = 1
    MsgBox "Island"
    Case Else
    MsgBox "Wall"
    End Select
    Which I am using as a test to differentiate between values in a combo box.

    The values either start with IG or WG, followed...
    See more | Go to post

  • James Bowyer
    replied to SQL WHERE Query
    Brilliant, tried the first one, and it Worked!

    I am more used to using SQL within VBA, hence why I had written it as I had, I knew there must be a way of doing it in normal SQL.

    Thanks Very much.
    See more | Go to post

    Leave a comment:


  • James Bowyer
    replied to SQL WHERE Query
    Apologies, the full code is:

    Code:
    SELECT BayDetails.Department, BayDetails.ShelfHeights, BayDetails.Variable1, BayDetails.Variable2, BayDetails.Variable3, BayDetails.BayWidth, BayDetails.BayNumber, BayDetails.Height, BayDetails.BaseDepth
    FROM BayDetails
    WHERE (((BayDetails.Side)='Left')AND ((BayDetails.JobNumber)='" & Me.JobNumber & "'))   
    ORDER BY BayDetails.BayNumber DESC;
    and is...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...