Please help me understand. This was working for me a little while ago. Now if I leave txtCpyQuote blank it comes thru as null but my if statement won't catch it. I stepped thru it with the locals window and is shows a value of null but still doesn't get caught. Thank you.
On Error GoTo ErrCpyQuote
Dim var1, var2, quoteHld As Variant
Dim AutoNumHld1, AutoNumHld2 As Integer
'Variables for the DoCmd.OpenForm because without it you get the pop-up box
var1 = Me.txtCpyQuote.Value
var2 = "Quote ="
If Me.txtCpyQuote.Value = "" Or Me.txtCpyQuote.Value = Null Then 'This is to catch when the TextBox is left blank.
MsgBox "Please enter a Quote Number to find and copy."
GoTo txtEmpty
End If
On Error GoTo ErrCpyQuote
Dim var1, var2, quoteHld As Variant
Dim AutoNumHld1, AutoNumHld2 As Integer
'Variables for the DoCmd.OpenForm because without it you get the pop-up box
var1 = Me.txtCpyQuote.Value
var2 = "Quote ="
If Me.txtCpyQuote.Value = "" Or Me.txtCpyQuote.Value = Null Then 'This is to catch when the TextBox is left blank.
MsgBox "Please enter a Quote Number to find and copy."
GoTo txtEmpty
End If