You need to also note that
If Me.txtCustomerNumber > "" Then
doesn't really validate whether or not txtCustomerNumber is populated. There are a number of ways to do that, I usually use
If Nz(Me.txtCustomerNumber, "") <> "" Then
which checks for Nulls (which is what the majority of 'empty' Controls/Fields actually hold) and for Zero-Length Strings ("") which, under some circumstances, can display as 'empty.'
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007