Results 1 to 7 of 7
  1. #1
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199

    Record ID not matching Form ID

    Hello,

    I'm wondering why the Record ID in my Form doesn't match the ID of that record in the system. This is consistent across all of my records? Does anyone have an explanation?


    Thanks,Click image for larger version. 

Name:	record.png 
Views:	12 
Size:	1.3 KB 
ID:	19071

  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,530
    What you've pictured is simply the total record count and the position within that count of the record being displayed. There is nothing data-related (like the ID number) being displayed.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Pbaldy, That's exactly the issue. I *want* to be able to link the record with it's ID so that it can be easily referenced if needed. For instance someone could export a report of all IDs and records, find the ID that they want and then plug it into that little box to go directly to it.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I don't think it's possible with the built-in navigation buttons. You'll have to create your own, perhaps using the bookmark code the "find a record" combo would use.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The record counter at the bottom of the screen cannot be used to do what you need to do. As Pbaldy pointed out, those counters have no relation to the data in your records - none. They are entirely dependent on the sort order currently in effect on the form, and every time you sort on a different field in your form, a different record will be record 1 of 117 (as will most of the others) - MS Access does not have "record numbers" as such.

    What you will need to do is put an un-bound text box on the form, enter the unique ID of the record you want to search for, and then go to that record with VBA.

    Alternatively, you can click on the ID field in the form, then use Find (in the ribbon) to locate the record you want.

  6. #6
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    pbaldy & John G. Thanks. Could you offer any assistance with the VBA if I used the unbound textbox to lookup an ID?

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    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. Move next unless record is matching then skip
    By Ruegen in forum Programming
    Replies: 2
    Last Post: 09-03-2014, 07:26 AM
  2. Replies: 1
    Last Post: 07-09-2014, 10:42 AM
  3. Replies: 5
    Last Post: 05-13-2014, 10:48 AM
  4. Replies: 8
    Last Post: 05-05-2012, 02:01 PM
  5. Replies: 3
    Last Post: 04-13-2012, 10:39 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