F
FGM
Access XP Windows 2000
Form and Subform.
User should type a record in the main form first.
If user uses the mouse to go to the subform and tries to
key data when keying the last line gets an error message
"You cannot add or change a record because a related
record is required in table tabloadTitle".
I am trying to suppress the error message and use my own
message and then I want to cancel that record (as you
would with the escape key) and return them to the main
form title field.
I found a round about way to suppress the message in
Before Update but do not know if it is the best way.
I can not find a way to clear the record (esc) and return
them to the main form. The cursor is in a field in the
subform of the main form and trying to go to the next
record in the subform.
Any help???
Thanks
Form and Subform.
User should type a record in the main form first.
If user uses the mouse to go to the subform and tries to
key data when keying the last line gets an error message
"You cannot add or change a record because a related
record is required in table tabloadTitle".
I am trying to suppress the error message and use my own
message and then I want to cancel that record (as you
would with the escape key) and return them to the main
form title field.
I found a round about way to suppress the message in
Before Update but do not know if it is the best way.
I can not find a way to clear the record (esc) and return
them to the main form. The cursor is in a field in the
subform of the main form and trying to go to the next
record in the subform.
Any help???
Thanks