I have simple error catch in my code :
Private Sub ordsch_Click()
On Error GoTo errhandler
DoCmd.OpenForm "Order Search"
errhandler:
Exit Sub
End Sub
The Order search opens a query that has a parameter request for the user to enter a search string, so it allows ok and cancel, if the user enters info - all ok, but if the user clicks cancel then i get error 2501.
The problem i have is that the error trap worked yesterday and i have not touched this area of code at all today (the coding gremlin has been at large again). I have compiled ok, compressed and repaired.
Any ideas ?