Hello, I'm trying to filter a query depending on what text boxes on a form are enabled. I have it in an iif statement and I'm trying to check if the text boxes are enabled or not then go from there.
It doesn't seem to be checking the text boxes correctly or something else is wrong. Not sure. Any help would be great.
This is what i have so far.
IIf ( [Forms]![frmLMBSearch]![txtTitle].[enabled]=True, Like "*" & [Forms]![frmLMBSearch]![txtTitle].Text & "*" , )
so.. if the text box is enabled enter the text in the criteria, if it is not enabled don't put anything in the criteria
It doesn't seem to be checking the text boxes correctly or something else is wrong. Not sure. Any help would be great.
This is what i have so far.
IIf ( [Forms]![frmLMBSearch]![txtTitle].[enabled]=True, Like "*" & [Forms]![frmLMBSearch]![txtTitle].Text & "*" , )
so.. if the text box is enabled enter the text in the criteria, if it is not enabled don't put anything in the criteria