I’m a lowly novice Access user.
I created a database of our brain tumor patients. Up till now it’s just been a standalone database. So, using the autonumber from the primary key in my demographics table as the patient Id Number has worked well up till now. However now we are planning to add another site. If we pool our data, our patient ID numbers will overlap and will no longer be unique.
I need a way to easily distinguish my patients from patients at the other site. For example, my patient ID numbers would start with the letter “a”. Another site’s would start with the letter “b”. I don’t want to monkey with the autonumber in the primary key field because I’ve always heard that doing that can lead to problems.
So, since Access only allows one autonumber field per table, how do create a Id number field in my demographics table that is both unique to my site, and automatically increases with each record in the database like an autonumber?
Thanks
Last edited by NBVC; 05-06-2011 at 03:52 PM.
This is what you are looking for
About halfway down the page there is about 5 different examples.
Hope this helps,
Dan
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!
How about creating a tblSite? You'll be able to use the PK from tblSite as a foreign key in your demographics table.
Cheers,
“To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln
Nope. Not going to figure this one out I'm afraid. Too far over my head. Thanks for the suggestions though.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks