G
Guest
I'm trying to change the users criteria based on a set of checkboxes. But
first I wanted to test just being able to change the stored query behind a
form.
Dim db As DAO.Database 'DB Variable
Dim rst As DAO.Recordset 'Recordset
Dim qry As String
Dim qdf As DAO.QueryDef
Set db = CurrentDb
Set qdf = db.QueryDefs("str_Qry_Adj")
'Build the search query
qry = "SELECT * FROM Knowledge" & _
" WHERE (Data LIKE *" & "'" & Me.Keyword & "'*)"
qdf.SQL = qry
Apparantly there's a missing operator. If anyone could help me out I'd
appreciate it.
first I wanted to test just being able to change the stored query behind a
form.
Dim db As DAO.Database 'DB Variable
Dim rst As DAO.Recordset 'Recordset
Dim qry As String
Dim qdf As DAO.QueryDef
Set db = CurrentDb
Set qdf = db.QueryDefs("str_Qry_Adj")
'Build the search query
qry = "SELECT * FROM Knowledge" & _
" WHERE (Data LIKE *" & "'" & Me.Keyword & "'*)"
qdf.SQL = qry
Apparantly there's a missing operator. If anyone could help me out I'd
appreciate it.