B
Bernd
Hi,
I've a form with two comboboxes. The first contains a
list of patientnames and the second the related date of
visits (related to each other by a relationship one-to-
many on PatientNameID, which contains the id number of
the patients). When I click on a patient name in the
first combo, when I drop down the second I see all the
dates of visits of that patient. When I add a patient
name on the first combo, everything is all right, but
when I try to add a date to the selected patient there
compares the following error message:
"You cannot add or change a record because a related
record is required in table "tablename""
I also tryed to add a WHERE condition in the code
inserted on NotInList event of the combo, but the result
is a syntax error of Insert Into.
How can I resolve this problem?
Thanks
Bernd
I've a form with two comboboxes. The first contains a
list of patientnames and the second the related date of
visits (related to each other by a relationship one-to-
many on PatientNameID, which contains the id number of
the patients). When I click on a patient name in the
first combo, when I drop down the second I see all the
dates of visits of that patient. When I add a patient
name on the first combo, everything is all right, but
when I try to add a date to the selected patient there
compares the following error message:
"You cannot add or change a record because a related
record is required in table "tablename""
I also tryed to add a WHERE condition in the code
inserted on NotInList event of the combo, but the result
is a syntax error of Insert Into.
How can I resolve this problem?
Thanks
Bernd