Results 1 to 2 of 2
  1. #1
    Bosakie is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    4

    On Load form error

    Hello,

    I am using the Microsoft 2003 Access Asset Managment database as a starting point. I have been working on updating the database to meet my requimments. Everything is working fine, but I get an error when launching the dataabase and the Assets form loads.
    Click image for larger version. 

Name:	Error001.png 
Views:	7 
Size:	4.0 KB 
ID:	18345
    Clicking OK will bring up a screen to continue or debug. I click on debug and continued to run the form load and then the form worked without error. However, closing the database down and brining it back up produces this error again.

    This time I clicked Cancel and got this message box:

    Click image for larger version. 

Name:	Error002.png 
Views:	7 
Size:	20.3 KB 
ID:	18346


    The funny thing is, again, I click ok and the form works as expected. Not sure where to go to resolve this, but I have been thinking about not loading the form when starting the database.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Its saying it cant find the field, make sure there is a box on the form called ASSETID.
    make sure there is a form load event and see what is in there.

    If ASSETID does exist, AND the query connected to the form using this param , then during form load it cant find ASSETID.
    You cant fill in the textbox WHILE the form is loading.
    You may want to remove the parameter in the query, UNTIL the user fills in assetid, THEN connect that query to the form.

    It sounds like a timing issue. The assetid is not available until later.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2014, 06:17 AM
  2. Filter form on load
    By hithere in forum Programming
    Replies: 1
    Last Post: 07-11-2014, 10:53 AM
  3. Replies: 15
    Last Post: 07-24-2013, 12:22 PM
  4. ApplyFilter to form on Load error
    By rivereridanus in forum Access
    Replies: 1
    Last Post: 08-18-2011, 12:00 PM
  5. On Load, form not visible
    By Bruce in forum Forms
    Replies: 15
    Last Post: 02-24-2010, 04:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums