AFAIK, IsNumeric(Me.tbx_NumOrdered) will return False if the value is Null or contains non numeric characters, so the test should be simpler than what I see in the first post.
Sample air code:
Code:
Private Sub tbx_NumOrdered_BeforeUpdate(Cancel As Integer)
If Not IsNumeric(Me.tbx_NumOrdered) Then
Msgbox ("Please enter a whole number!")
Cancel = True
End If
Depending on the need, this check might be done at the control or form level. If I want to validate several controls this way, I create a loop and find those controls whose tag value was set to 'Reqd' then pass them to a function that validates them accordingly. Having a module level function makes the task available to any form in the db.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.