I am using a text box on a form to complete the criteria(s) to filter a report. A WHERE stmt that works is:
strWhere = strWhere & " [GroupName] Like 'a*'"
The above example finds all Group names that start with the letter "a". GroupName is the field in the report (underlying query) and I'd like to have the field "txtGroupName" from the form supply the variable information. I can't seem to code what is needed in the WHERE stsmt in VB to get this done. The quotes, asterisk, etc. are making it a little difficult for me.
Can anyone help?
Thanks so much!
strWhere = strWhere & " [GroupName] Like 'a*'"
The above example finds all Group names that start with the letter "a". GroupName is the field in the report (underlying query) and I'd like to have the field "txtGroupName" from the form supply the variable information. I can't seem to code what is needed in the WHERE stsmt in VB to get this done. The quotes, asterisk, etc. are making it a little difficult for me.
Can anyone help?
Thanks so much!