Forum Discussion

Paul_Antares's avatar
Paul_Antares
Copper Contributor
Nov 07, 2022
Solved

#Deleted issue with GUID

Hi all, I'm working on a project with linked tables in SQL Server. Primary Keys of the tables are Guid for sync pruposes. When I'm trying to make a form and a subform with GUID keys, parent and chi...
  • George_Hepworth's avatar
    Nov 07, 2022

    Paul_Antares 

     

    Working with GUIDs is one way to achieve your goal, but it is a more complex method than relying on Integers set to Identity to autogenerate new values for a Primary Key.

     

    You need to ensure that your method for adding new records includes creating a new GUID for the PK in each table before trying to save that record. As Arnel said, using GUIDs is not a common approach, so finding an example of that might require a more extensive search. 

     

    Also, you must be sure that Access recognizes this Primary Key field as the Primary Key field when linking those tables. When a table has an integer with Identity Specification set, Access identifies it as the PK, but in this case, it might not do so. You'll have to be sure you designate it when creating the links so that Access can use it in forms and subforms, etc.

Resources