Results 1 to 2 of 2
  1. #1
    Hubler is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    5

    Question Autonumber not updating until end of record set


    I constructed a database in access 2007, when you entered a new record the autonumber would be generated once you started typing in values. I have since upgraded it to an SQL back end and now the autonumber does not update until the recordset is completely entered. This is causing me serious problems with my subforms since the record will not update before I need to go to the subform. Any suggestions?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    That is normal for SQL Server. You can force a save at the appropriate point before going to the subform with:

    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Updating a record with a value through a macro
    By jlgray0127 in forum Programming
    Replies: 1
    Last Post: 10-06-2011, 02:34 PM
  2. Replies: 4
    Last Post: 04-07-2011, 04:38 PM
  3. Updating Autonumber Fields
    By Rawb in forum Code Repository
    Replies: 4
    Last Post: 02-21-2011, 07:17 AM
  4. SQL not updating record
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 01-27-2011, 10:42 AM
  5. updating a record
    By markjkubicki in forum Programming
    Replies: 18
    Last Post: 09-19-2010, 08:20 AM

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