I have set up a pair of tables (tblTestA & tblTestB), where the PK of tblTestA is an AutoNumber, and the PK of tblTestB is a Long Integer. In the Relationships window I added a 1-to-1 link enabling referential integrity with cascading updates and
deletes.
Table Name=[tblTestA]
Table Name=[tblTestB]
When I created a query to add/manage the data in both tables, the Long Integer BID data was maintained by the system. BID would only be set if some data had been entered into one of the other tblTestB fields though.
deletes.
Table Name=[tblTestA]
Code:
[I]Field Type IndexInfo[/I] AID AutoNumber PK AData String
Code:
[I]Field Type IndexInfo[/I] BID Number(Long Integer) PK BData String
Code:
SELECT tTA.AID, tTB.BID, tTA.AData, tTB.BData FROM tblTestA AS tTA INNER JOIN tblTestB AS tTB ON tTA.AID=tTB.BID
Comment