I have an initial number which I must combine with a type of unit to create a new unique serial number. The problem comes when I try and enter a new serial number from a form that I have constructed for this purpose.
On the form I have the code type in a list box, based on another table. The next box is a text box which requires that you type in 4 numbers. That I have a button that you click that runs a macro in the background.The macro :
1.turns the warning messages off
2. Runs a query to combine the code name with the serial number.
3.Deletes any record which dont have a unique serial number
4. turns the warning messages on
The error I am getting is "The field cannot contain a null value because the required property for this field is set to true."
The unique serial number field is set to required and no duplicates. So I don't understand why my query is not being executed.
On the form I have the code type in a list box, based on another table. The next box is a text box which requires that you type in 4 numbers. That I have a button that you click that runs a macro in the background.The macro :
1.turns the warning messages off
2. Runs a query to combine the code name with the serial number.
3.Deletes any record which dont have a unique serial number
4. turns the warning messages on
The error I am getting is "The field cannot contain a null value because the required property for this field is set to true."
The unique serial number field is set to required and no duplicates. So I don't understand why my query is not being executed.