Results 1 to 8 of 8
  1. #1
    TaliaKlein is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    11

    Error 2105 all of a sudden

    I have a form that has worked literally for years!! All of a sudden this morning it started given us error 2105 and will not load a new record.
    Nothing that I know of has changed. Below is the highlighted code that appears after I click debug. I tried adding the record selectors and navigators to the form to see if I could get to a new record that way and it was disabled. Any help is appreciated.

    Private Sub Form_Load()
    DoCmd.GoToRecord , , acNewRec
    End Sub

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    How are you opening the form? Maybe you can use code to open the form in acAddNew mode? Have you tried commenting out the DoCmd code to see if other code fails, too?

  3. #3
    TaliaKlein is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    11
    It seems that I have some crazy bugs that have crept into my database because this all began when I did a compact and repair. I was able to resolve the problem by reverting to my backup back end from before the compact and repair.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    So you have gone to the backup. Now is everything working as expected?

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    OK, yeah. I see how this is related to the other thread. I posted there.

  6. #6
    TaliaKlein is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    11
    Everything is working but I still have the strange double PK in the client table and it is a bit worrisome that I can't do a compact and repair. I think maybe my database is suffering from old age. Thank you Orange and ItMe for your suggestions.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Please explain strange double PK in the client table.

  8. #8
    TaliaKlein is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    11
    Hi Orange,
    It seems that this is related to the problem that you have been helping me with in my other post with my client table and the compact and repair that made things worse. I don't want you to have to repeat your efforts, so let's bail on this one. I apologize for the parallel postings, but I didn't realize they were related until my brain surfaced from it's sleep deprived fog to realize that the only thing that had changed with the database was the compact and repair that I did to figure out the other problem.

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

Similar Threads

  1. Button to open form sudden error
    By tgunarto in forum Macros
    Replies: 2
    Last Post: 11-21-2014, 01:04 AM
  2. Replies: 1
    Last Post: 01-10-2014, 09:51 AM
  3. Replies: 10
    Last Post: 10-22-2013, 07:35 AM
  4. Replies: 5
    Last Post: 08-22-2012, 04:27 AM
  5. Replies: 1
    Last Post: 06-04-2012, 03:37 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