Qwert0000
Technical User
- Oct 24, 2003
- 30
I have a db with 2 main tables. All members are in my PersonnelInfo table while only "students" are in my TrainingRecords table. This two tables are linked by a common SSN field. I have turned off Add record to all my forms to insure that all my required fields are populated when a new record is added.
I have an AddRecord Form that has all the required fields as text and comboboxes and have my command button checking for approiate information before adding the record.
I need to first check to insure the record does not currently exist and respond with a msg box if it does.
If the record does not exist I want to add the record where PersonnelInfo.SSN = txtAddSSN, TrainingRecords.SSN = TxtAddSSN, PersonnelInfo.LastName = TxtAddLastName TrainingRecords.TraingStartDate = TxtAddStartDate. ect
I can handle the if then statement to write the fields depending on weather the record is a stff or student. I just cant get a handle on checking for an eof when i check to see if it exists or how to write the record after all the checking is done.
Thanks for taking time to assist a Novice user.
I have an AddRecord Form that has all the required fields as text and comboboxes and have my command button checking for approiate information before adding the record.
I need to first check to insure the record does not currently exist and respond with a msg box if it does.
If the record does not exist I want to add the record where PersonnelInfo.SSN = txtAddSSN, TrainingRecords.SSN = TxtAddSSN, PersonnelInfo.LastName = TxtAddLastName TrainingRecords.TraingStartDate = TxtAddStartDate. ect
I can handle the if then statement to write the fields depending on weather the record is a stff or student. I just cant get a handle on checking for an eof when i check to see if it exists or how to write the record after all the checking is done.
Thanks for taking time to assist a Novice user.