JeffNolan1900
Technical User
I have a query called "QueryME"
I have a Form called "FormME"
Within that form, I have a search box called "SearchME"
When the user enters the word ' air ' into the search box, I want it to pull all types that have the word air in them and refresh the query.
The user should have the ability to do this repeatedly.
I tried putting this in the query criteria box:
[Forms]![frmXMLcreator]![ComboEntityName]
When the user clicks "Update Query" I guess the query reads the value from this text box.
It works one time. But the next time, it does not work.
It also will only pull up air, and not airport.
The code behind the button "Update Query" in my form, looks like this. All the button does is open the query. It's pretty standard.
errhhhh....
Thanks.
I have a Form called "FormME"
Within that form, I have a search box called "SearchME"
When the user enters the word ' air ' into the search box, I want it to pull all types that have the word air in them and refresh the query.
The user should have the ability to do this repeatedly.
I tried putting this in the query criteria box:
[Forms]![frmXMLcreator]![ComboEntityName]
When the user clicks "Update Query" I guess the query reads the value from this text box.
It works one time. But the next time, it does not work.
It also will only pull up air, and not airport.
The code behind the button "Update Query" in my form, looks like this. All the button does is open the query. It's pretty standard.
Code:
Private Sub cmbUpdateQuery_Click()
On Error GoTo Err_cmbUpdateQuery_Click
Dim stDocName As String
stDocName = "QueryME"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_cmbGenerate_Click:
Exit Sub
Err_cmbGenerate_Click:
MsgBox Err.Description
Resume Exit_cmbGenerate_Click
End Sub
errhhhh....
Thanks.