Hello,
I've developed a QBF arrangement using one table, one query, and one form.
The table is a list of records from a library database. The form has several text boxes specifying several individual fields from that table. There is one button in the form running a macro that runs a query.
This query has all the text box fields from the form, each on in a column with the following criteria:
Like [Forms]![FormName]![TextBoxName] & "*" Or Is Null
This returns the records needed, but also obviously includes any NULL values. What I need is criteria that returns the NULL values only when the text box field is blank, and returns all related values when the text box field is filled out. I've tried an iif statement along the lines of:
iif (isnull([Forms]![FormName]![TextBoxName]),NULL, [Forms]![FormName]![TextBoxName] & "*" )
However this yields no results. I'm new to SQL so any help is appreciated.
Thanks,
Jay