Variable not defined error

Skip Bisconer

Who Me?
Local time
Today, 05:54
Joined
Jan 22, 2008
Messages
285
I get a "Variable not defined" at the red text of this function. Can someone point out the reason for me. I copied pasted this out of a different process where it worked correctly.

Code:
Function PurgeSelectedOrderNumber()
On Error GoTo mcrPugertblSelectedOrderNumber_Err
[COLOR=red]SetWarnings[/COLOR] = False
MsgBox "This process will purge history older that the date you enter here."
 ' Purge Assigned Order Lines  History File by Date first
    DoCmd.OpenQuery "qryDeleteSelectedOrderLines", acViewNormal, acEdit
     
    
SetWarnings = True
mcrPugertblSelectedOrderNumber_Exit:
    Exit Function
mcrPugerHistoryByDate_Err:
    MsgBox Error$
    Resume mcrtblSelectedOrderNumber_Exit
End Function
 
Not exactly. It's

DoCmd.SetWarnings False
 
Thanks Paul,
Lake Shasta is filling up this year. Lotsa wet.
 
No problem Skip. It's still coming, too. We got a fair bit of rain yesterday. Presumably you did too.
 

Users who are viewing this thread

Back
Top Bottom