Hi-
I need some help/ advise on how to code unique numbers for the primary
keys of my 2 tables. I inherited a database that covers information
about Hearings and Rulings. Information about the Hearings and Rulings
were stored in 1 generic table called Case. I split it into 2 tables,
Hearings and Rulings. The problem is that the primary key, CaseID, is
an autonumber. I don't want the Hearings and Rulings to have the same
number.
For example:
CaseID = 22 = Ruling
CaseID = 23 = Ruling
CaseID = 24 = Hearing
CaseID = 25 = Ruling
After I split the tables, the last CaseID autonumber for the Rulings
was 25. The last record in my Hearings table has CaseID = 24. So my
next record in my Hearings table will haved a CaseID of 25, but the
last/ most recent record entered in tnr Rulings table has a CaseID =
25.
I would like to code it somehow so that all my Hearings CaseIDs are
"odd" and all my Rulings CaseIDs are "even."
Maybe something like CaseID + 1 for my Hearings and CaseID + 2 for my
Rulings. But I don't know where to put this info...in my form
somewhere when it loads or on current event...
Does anybody have any suggestions on the best way to percede?
Any help would be truly appreciated!
Thanks,
Megan