M
Mark
Hi all,
Hoping someone can help me with an error trapping routine for the following
situation:
I have a 1:many relationship between Table1 and Table2.
I have a mainform based on Table1 and a subform based on Table2.
Table1 has a primary key: NameID
Table2 contains a primary key based upon two fields: NameID and
ProblemNumber.
I would like to trap two errors and provide custom messages:
1. When the user begins to fill out fields in the subform before entering
data into the mainform -- i.e., in the case where no Table1 record has yet
been created.
2. When the user enters the same ProblemNumber twice for the same client,
then I would like to generate a custom message when the user attempts to
leave the ProblemNumber field which contains the duplicate value.
Thanks for any help,
Mark
Hoping someone can help me with an error trapping routine for the following
situation:
I have a 1:many relationship between Table1 and Table2.
I have a mainform based on Table1 and a subform based on Table2.
Table1 has a primary key: NameID
Table2 contains a primary key based upon two fields: NameID and
ProblemNumber.
I would like to trap two errors and provide custom messages:
1. When the user begins to fill out fields in the subform before entering
data into the mainform -- i.e., in the case where no Table1 record has yet
been created.
2. When the user enters the same ProblemNumber twice for the same client,
then I would like to generate a custom message when the user attempts to
leave the ProblemNumber field which contains the duplicate value.
Thanks for any help,
Mark