dbTalk Databases Forums  

PRIMARY KEYS

comp.database.ms-access comp.database.ms-access


Discuss PRIMARY KEYS in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
IDAHO
 
Posts: n/a

Default PRIMARY KEYS - 08-26-2004 , 05:56 AM






Is it possible to have part of the primary key of one table set by
making a selection from a list box which displays values from another
table.
I have two tables Patient and referral. The primary key for patient is
Hospital number.
The primary key for referral would be Hospital number and the date of
the referral. I want Hospital number in referral to be a foreign
key-connected to Patient thus ensuring that any hospital number in
referral must be in Patient.
I would also like the nurses entering the information to be able to
choose the value of Hospital number of referral from a list box that
listed the values of hospital number in Patient.
Is this possible in access. It doesn't seem to like it.
Thanks
Peter

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.