G
Guest
Here is what I have: A query (named: Query) with one field (named:Search)
with the criteria:
Like "*" & [frmMainpage].[Keyword] & "*"
Mainpage is the form that I am trying to create a user-input keyword search
textbox onto (named: keyword)
I then have the 'keyword' text box After Update expression as:
Private Sub keyword_AfterUpdate()
If Not IsNull(keyword) Then
Me.Filter = "[Search] Like ""*" & keyword & "*"""
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
Something is not right. I may be mixing this up way too much. I have never
built a database in my life and I am just trying to be able to have the user
enter in a word (that would be found in a string of words in the 'Search'
field) and I cannot figure it out.
Can anyone help me?
with the criteria:
Like "*" & [frmMainpage].[Keyword] & "*"
Mainpage is the form that I am trying to create a user-input keyword search
textbox onto (named: keyword)
I then have the 'keyword' text box After Update expression as:
Private Sub keyword_AfterUpdate()
If Not IsNull(keyword) Then
Me.Filter = "[Search] Like ""*" & keyword & "*"""
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
Something is not right. I may be mixing this up way too much. I have never
built a database in my life and I am just trying to be able to have the user
enter in a word (that would be found in a string of words in the 'Search'
field) and I cannot figure it out.
Can anyone help me?