Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting runtime error 2001 you canceled the previous operation

Status
Not open for further replies.

Bluestreak1

IS-IT--Management
Apr 12, 2007
1
US
I am a beginner with access and I am trying to create a basic search. I am getting a “runtime error 2001 you canceled the previous operation” when I click the command button and then cancel the search. I used the code below for the on click event for the command button.

Private Sub Command225_Click()
DoCmd.OpenQuery "Issue_Search", acViewNormal
End Sub


The code I used in the query “Issue_Search” is below.

Like [forms]![searchform].[issue_search] & "*"

Also another question I have is after clicking the search button the pop up search box contains the code from referenced query. Does anyone know how to change the text for this pop up box? I am hoping someone can help me out here? TIA.
 
You can add error handling do trap the error. Can you explain the second bit again in more detail, please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top