shiningblade
Programmer
I would like to have the criteria of a field in my query to come from a text field on a form.
[Forms]![frmSearch]![txtComments] is populated by a VBA function that will parse and format text from another field. I then want to use [Forms]![frmSearch]![txtComments]as the criteria for the field [Comments] in qrySearch.
The problem I have is the syntax of [txtComments].
Say for instance I want the criteria of [Comments] to be:
Like "*contract*"
I actually have the criteria as [Forms]![frmSearch]![txtComments]
What does [Forms]![frmSearch]![txtComments] have to look like?
Thanks for any help you can give,
Jude
As you may be able to tell, formatting strings is not my strong point... yet.
[Forms]![frmSearch]![txtComments] is populated by a VBA function that will parse and format text from another field. I then want to use [Forms]![frmSearch]![txtComments]as the criteria for the field [Comments] in qrySearch.
The problem I have is the syntax of [txtComments].
Say for instance I want the criteria of [Comments] to be:
Like "*contract*"
I actually have the criteria as [Forms]![frmSearch]![txtComments]
What does [Forms]![frmSearch]![txtComments] have to look like?
Thanks for any help you can give,
Jude
As you may be able to tell, formatting strings is not my strong point... yet.