I am developing a database that needs 3 Client tables, different types of clients having different sorts of data stored. My problem is I want ClientIDs that are unique over the whole 3 tables.
I'm familiar with Visual Basic so thought I'd add abit of code that incremented ClientID by one when it was replicated in another table. eg.
If (ClientTable1.Cid = ClientTable2.Cid) then
ClientTable1.Cid = ClientTable1.Cid + 1
End If
Trouble is I can't find where to insert this sort of code. I have tried the validation area of the Table. The Access doesn't seem to provide a place for validating an AutoNumber, understandibly.
I'm familiar with Visual Basic so thought I'd add abit of code that incremented ClientID by one when it was replicated in another table. eg.
If (ClientTable1.Cid = ClientTable2.Cid) then
ClientTable1.Cid = ClientTable1.Cid + 1
End If
Trouble is I can't find where to insert this sort of code. I have tried the validation area of the Table. The Access doesn't seem to provide a place for validating an AutoNumber, understandibly.