G
Greyhound
I have a form created in Access 2003. It is populted with a query. The
first textbox holds an 'ItemNumber'. ItemNumber's datatype in the database
is a Long. This field is not populated when a record is first entered into
the database, therefore is Null initially. The user enters item numbers at a
later time. When an item number is entered, I check to see if there is
already a item number matching the one that is entered. If that item number
has already been used, I tell the user that the number has already been used
and I set the textbox to an empty string. That is when the problem begins.
I get an error that states 'the value you entered isn't valid for this
field.'. How can I set the value of this field in the database back to Null?
first textbox holds an 'ItemNumber'. ItemNumber's datatype in the database
is a Long. This field is not populated when a record is first entered into
the database, therefore is Null initially. The user enters item numbers at a
later time. When an item number is entered, I check to see if there is
already a item number matching the one that is entered. If that item number
has already been used, I tell the user that the number has already been used
and I set the textbox to an empty string. That is when the problem begins.
I get an error that states 'the value you entered isn't valid for this
field.'. How can I set the value of this field in the database back to Null?