G
Guest
I am trying to create an Sql string to assign to a variable that i can use to
set the record source of a form. I am having a hard time inserting the "
qualifier around the *'s using a variable. PAsting the string as follows.
Any help will be greatly appreciated
ElseIf Not IsNull(Me.txtWhat.Value) And IsNull(Me.txtProblem) Then
strSQL = "SELECT tblLogOfIdeas.IdNo, tblLogOfIdeas.What,
tblLogOfIdeas.SymptomProblem, tblLogOfIdeas.ListedDate,
tblLogOfIdeas.ToActionDate " _
& "FROM tblLogOfIdeas " _
HERE--->>> & "WHERE (((tblLogOfIdeas.What)Like *" & strUserWhat & "*));"
Debug.Print strSQL
Forms!frmODLogOfIDeas!frmSubLOI.Form.RecordSource = strSQL
set the record source of a form. I am having a hard time inserting the "
qualifier around the *'s using a variable. PAsting the string as follows.
Any help will be greatly appreciated
ElseIf Not IsNull(Me.txtWhat.Value) And IsNull(Me.txtProblem) Then
strSQL = "SELECT tblLogOfIdeas.IdNo, tblLogOfIdeas.What,
tblLogOfIdeas.SymptomProblem, tblLogOfIdeas.ListedDate,
tblLogOfIdeas.ToActionDate " _
& "FROM tblLogOfIdeas " _
HERE--->>> & "WHERE (((tblLogOfIdeas.What)Like *" & strUserWhat & "*));"
Debug.Print strSQL
Forms!frmODLogOfIDeas!frmSubLOI.Form.RecordSource = strSQL