M
McCoy
Hi
I have tried to use the followin code to display all records
which meet the user entered criteria for a certain field
___________________________________________________________
Private Sub FindCustomerQuote_Click()
On Error GoTo Err_FindCustomerQuote_Click
Dim CusNo As String, CusCode As Long
CusNo = InputBox("Please Enter Code", "Find Records")
CosCode = Val(CusNo)
Me.Filter = "[CustomerNo]=" & CusCode
Me.FilterOn = True
Exit_FindCustomerQuote_Click:
Exit Sub
Err_FindCustomerQuote_Click:
MsgBox Err.Description
Resume Exit_FindCustomerQuote_Click
End Sub
___________________________________________________________
But keep getting the error:
"You Cancelled the previous Operation"
Can anyone suggest what may be causing this and how to fix this.
I have tried to use the followin code to display all records
which meet the user entered criteria for a certain field
___________________________________________________________
Private Sub FindCustomerQuote_Click()
On Error GoTo Err_FindCustomerQuote_Click
Dim CusNo As String, CusCode As Long
CusNo = InputBox("Please Enter Code", "Find Records")
CosCode = Val(CusNo)
Me.Filter = "[CustomerNo]=" & CusCode
Me.FilterOn = True
Exit_FindCustomerQuote_Click:
Exit Sub
Err_FindCustomerQuote_Click:
MsgBox Err.Description
Resume Exit_FindCustomerQuote_Click
End Sub
___________________________________________________________
But keep getting the error:
"You Cancelled the previous Operation"
Can anyone suggest what may be causing this and how to fix this.