Results 1 to 3 of 3
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Help!!!!

    Hi,

    May DB was working fine until I added an button (to add a new record) to a form, changed the name of a form and deleted a form I no longer needed. Somewhere in there it caused existing code not to work (simple stuff like Me.Requery).

    I am getting errors like "file not found" when I go to view the code on a form that no longer works. It is "error 53" in Access 2010. It says:

    "A statement, for example, Kill, Name, or Open, refers to a file that doesn't exist. Check the spelling of the file name and the path specification"

    I deleted the form with the macro. Can it still exist somewhere else?

    Any advice or suggestions would be more that appreciated.

    Take care,

    Daryl

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    First, check to see if your database will compile. Open any module in design mode and click Debug > Compile (myprojectname).

    You can use "find" (ctrl-F) in your VBA code to find any occurrences of "Kill", "name", or "Open" that may be causing a problem for your form.

  3. #3
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks, I ended up exporting the tables etc. to a new DB agood thing in the end, it helped me clean the dB somewhat.

    Take care,
    Daryl

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

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