Results 1 to 7 of 7
  1. #1
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11

    Exclamation mismatch in Key IDs

    I'm not sure how I got into this situation, but...



    I have 4 tables and all share the Key ID.
    It's been working well.
    I recently was adding new records to each table when I saw
    3 of my 4 tables are autonumbering correctly (creating new record), but the last one has jumped (instead of the next number being 4, it creates record # 12 for example)..

    How to fix this ?!

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    All four tables have a field named "Key ID" that are of AutoNumber datatype? And you're using this field to join the tables?

    The correct way to go about this would be to use Primary key/ foreign key pairs. You link a table's primary key field (autonumber) to another table's foreign key field (number), you would define the relationship between the tables using the relationship window and set enforce referential integrity.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  4. #4
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11
    OK, I see..

    I just redid the relationships, so that the first table contains the only primary key and it connects to the foreign keys of each of the other 3 tables. And the foreign keys were switched to number (rather than autonumber).

    But I still have the problem of being out of sync on the last table... How to re-sequence ?

  5. #5
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    Can we see a screenshot of your data and your relationship window?

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    How to re-sequence
    how many records? if only a few, do it manually. Or delete the lot and start again.

  7. #7
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11
    After redoing the relationships per kd2017's advice, it now works. Thank you !

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

Similar Threads

  1. Type Mismatch
    By Alex Motilal in forum Programming
    Replies: 5
    Last Post: 02-04-2017, 05:57 PM
  2. Data mismatch
    By cbende2 in forum Access
    Replies: 13
    Last Post: 06-05-2015, 01:18 PM
  3. Type mismatch
    By mmaule in forum Access
    Replies: 4
    Last Post: 02-23-2015, 11:47 AM
  4. mismatch problem
    By mizzkk in forum Queries
    Replies: 2
    Last Post: 12-06-2013, 07:26 AM
  5. VBA strSQL mismatch
    By SPW_12 in forum Programming
    Replies: 12
    Last Post: 07-31-2012, 07:47 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