Hi all, I need help on something that seems like it should be easy to do.
When entering new data onto any form in my database the field [SubNo] has to exist in another table (tblPatients). If a SubNo is entered that isn't already on tblPatients, I want it to open the form frmNewPatient to add the patient to tblPatients; If the SubNo is already in tblPatients, I want it to do nothing. I can't figure out what the condition should be in a macro to make this happen. Any suggestions?
Thanks!!
Cheryl
When entering new data onto any form in my database the field [SubNo] has to exist in another table (tblPatients). If a SubNo is entered that isn't already on tblPatients, I want it to open the form frmNewPatient to add the patient to tblPatients; If the SubNo is already in tblPatients, I want it to do nothing. I can't figure out what the condition should be in a macro to make this happen. Any suggestions?
Thanks!!
Cheryl
Comment