dreamdelerium
Registered User.
- Local time
- Today, 13:14
- Joined
- Aug 24, 2007
- Messages
- 88
ok, let me clarify what im doing with the tables ( I thought it might be better to just start a new thread). i have three table, each holding records of three different types of clients (orphans, Home base care patients, and
destitutes). the tables are not linked and do not share data across tables (although they may share some similar fields types--first name, last name, etc-- each are to be treated independently of the other because for the most part their fields are different). i need a unique identifier for all three tables because i have a form
that searches all tables for particular client and returns that recordset for editing in another form. if table A, B, and C all have a recordset with a similar PK i would return 3 records, not the original one. i know i could do my search on PK, First Name, and Last Name but id rather not risk the chance of (even if it is remote) of all three criteria being created in two or more tables. i like the suggestion that CraigDolphin gave about matching the Autonumber with another identifier and using
that as my PK. one question, though: when i enter the recordset into the table how do i retrieve the Autonumber for that new record (to match with the new "table
identifier") if the recordset hasnt been created yet. the only thing i can think of doing is create the recordset, then go back and update the recordset with the new PK.
this then brings up another question ive been trying to figure out. how do i retrieve the PK field from the recordset and return it to my form to be used?
destitutes). the tables are not linked and do not share data across tables (although they may share some similar fields types--first name, last name, etc-- each are to be treated independently of the other because for the most part their fields are different). i need a unique identifier for all three tables because i have a form
that searches all tables for particular client and returns that recordset for editing in another form. if table A, B, and C all have a recordset with a similar PK i would return 3 records, not the original one. i know i could do my search on PK, First Name, and Last Name but id rather not risk the chance of (even if it is remote) of all three criteria being created in two or more tables. i like the suggestion that CraigDolphin gave about matching the Autonumber with another identifier and using
that as my PK. one question, though: when i enter the recordset into the table how do i retrieve the Autonumber for that new record (to match with the new "table
identifier") if the recordset hasnt been created yet. the only thing i can think of doing is create the recordset, then go back and update the recordset with the new PK.
this then brings up another question ive been trying to figure out. how do i retrieve the PK field from the recordset and return it to my form to be used?