In the interest of full disclosure, I actually studied Access in college. I also got a C and it was my least favorite class during my entire college experience. I earned my C and knew as much about Access the day I finished the class as I did the day I started. Perhaps less. I did learn a great deal about database theory, which I have found actually makes Access harder for me to use ten years later.
Anyway. We have created a database in access. Presently the primary key used in most of the tables is a 'record number' which is concatenated by combining a 'store number' and a 'batch number'. The user actually enters all three data points (store number, batch number, and store number-batch number) manually into an input form.
The 'batch number' and 'store number' are logical datapoints for the user (actually they aren't logical at all, but I used a drop down for store number with limits options, and made 'batch number' auto populate the next number in sequence), but adding them together to form a unique 'record-number' throws them for a loop.
How can I have access combine the two datapoints themselves to create the needed key?
I have attempted to do this by designating a composite primary key, but when I attempt to join the two tables I am clueless as to how I would go about joining them in SQL. How does one define a relationship based on multiple keys I only know how to do so based on a single key...
Thank you in advance for your help.
Richard
Anyway. We have created a database in access. Presently the primary key used in most of the tables is a 'record number' which is concatenated by combining a 'store number' and a 'batch number'. The user actually enters all three data points (store number, batch number, and store number-batch number) manually into an input form.
The 'batch number' and 'store number' are logical datapoints for the user (actually they aren't logical at all, but I used a drop down for store number with limits options, and made 'batch number' auto populate the next number in sequence), but adding them together to form a unique 'record-number' throws them for a loop.
How can I have access combine the two datapoints themselves to create the needed key?
I have attempted to do this by designating a composite primary key, but when I attempt to join the two tables I am clueless as to how I would go about joining them in SQL. How does one define a relationship based on multiple keys I only know how to do so based on a single key...
Thank you in advance for your help.
Richard