M
M Skabialka
I created a form eons ago which gives the user several combos to select
from. This creates a form filled with data which is then printed off one
time for signature. Now the users want a historical record of the
selections they made, including the data as it was at that time (like the
old phone number, address, work schedule, etc).
So I created a table with all the info they want to keep and bound the form
to it. Adding records is easy, I have marked anything saved as "locked" so
they can't change it, but I have a problem with the form:
When the user creates a new record, then tries to back off and go to the
previous record, he gets a message "The field 'mytable.employeeID' cannot
contain a null value because the Required property for this field is set to
true. Enter a value in this field." The Navigations buttons are set to not
allow new records. The button to create new records initializes some fields
but not EmployeeID. When the message is up CTRL Break does not go to a code
module, the message goes away.
I can't figure out where exactly this message is triggered so that I can do
something about it like disable the message since the record is blank
anyway, or undo the new record, or add something to the field then delete
the record. I am unable to capture the error message on any of these
events:
Open Load Resize Activate Current
Can anyone help me here?
Thanks,
Mich
from. This creates a form filled with data which is then printed off one
time for signature. Now the users want a historical record of the
selections they made, including the data as it was at that time (like the
old phone number, address, work schedule, etc).
So I created a table with all the info they want to keep and bound the form
to it. Adding records is easy, I have marked anything saved as "locked" so
they can't change it, but I have a problem with the form:
When the user creates a new record, then tries to back off and go to the
previous record, he gets a message "The field 'mytable.employeeID' cannot
contain a null value because the Required property for this field is set to
true. Enter a value in this field." The Navigations buttons are set to not
allow new records. The button to create new records initializes some fields
but not EmployeeID. When the message is up CTRL Break does not go to a code
module, the message goes away.
I can't figure out where exactly this message is triggered so that I can do
something about it like disable the message since the record is blank
anyway, or undo the new record, or add something to the field then delete
the record. I am unable to capture the error message on any of these
events:
Open Load Resize Activate Current
Can anyone help me here?
Thanks,
Mich