Consulting

Results 1 to 7 of 7

Thread: Solved: Error accessing file.

  1. #1
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location

    Solved: Error accessing file.

    Can you help? message reads: Error accessing file. Network connection may have been lost.

    I made a duplicate form so that I could "practice" adding a date/time picker. After I got the code to work, I deleted this form. The form still appears in the project directory. I can't remove it by right clicking.

    I repaired the database under utilities, but nothing has changed. I cannot modify my code in this Access database, not on the form, not in a module. Any suggestions, or do I have to make a new database?

  2. #2
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Did you restart the computer? Can you share a little bit more about the database? Sounds like the data is split from the front end from your error message.

  3. #3
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    I have restarted my computer, several times. What I think happened was that when I duplicated a form, the VBA information was duplicated also. Then, when I deleted that same form, I deleted it in the main form screen. The actual Form created, was removed from the database, but the code in VBA remained. There seemed to be know way to remove the form in VBA. I found a similar faq on another website where they said to decompress the file. I did that, but the problem still remained. Then, I just made a duplicate database by exporting my tables and only the forms that I needed. Making this new ACCESS database solved the problem. Luckily, it transferred the relationships as well.

    There was much celebration and rejoicing when that error message went away. Thanks for helping!

  4. #4
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Sounds to me that somehow your original database got corrupted somehow or there was a network problem.

    By the way as far as I know if you remove a form any VBA in it's module would be removed as well.

    Also you can remove/add forms using VBA.

  5. #5
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    So this is solved then?

  6. #6
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    Not that I'm from the Midwest or anything, but "You betcha!" Am I supposed to do something special when a request is solved? -- just call me newbie to this sort of process!

  7. #7
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Yeah, there's a link at the top of this page called "Thread Tools" where you should see an option pop up for this issue being solved. Unfortunately, there is no distinction between solved with help from others and solved by self.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •