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