Ok heres my problem, I'm building a search program that allows for multiple fields to be searched in one go. So I have a big query connected to a form with form objects associated to each field of the query...
For example:
There is a list-box for Job types: Road Reconstruction, Sanitary, etc.
In the query criteria for the "type" field I have: Like IIf(IsNull([Forms]![frmSearch]![lsttype]),"*",([Table-More info].[Type]) Like [Forms]![frmSearch]!
I cannot get results when a specific job type is clicked on :S.
Secondly, I have a fldyear field, with a corresponding textbox,
And Query Criteria:
Like IIf(IsNull([Forms]![frmSearch]![txtyear]),"*",[Forms]![frmSearch]![txtyear])
The problem is, some of my objects lack a year value and do not show up, my temporary solution has been to put "0" in this category, but I'd rather be able to leave it empty so it is less confusing, any way of doing this?
Any help is greatly appreciated.
Thanks.
A
For example:
There is a list-box for Job types: Road Reconstruction, Sanitary, etc.
In the query criteria for the "type" field I have: Like IIf(IsNull([Forms]![frmSearch]![lsttype]),"*",([Table-More info].[Type]) Like [Forms]![frmSearch]!
I cannot get results when a specific job type is clicked on :S.
Secondly, I have a fldyear field, with a corresponding textbox,
And Query Criteria:
Like IIf(IsNull([Forms]![frmSearch]![txtyear]),"*",[Forms]![frmSearch]![txtyear])
The problem is, some of my objects lack a year value and do not show up, my temporary solution has been to put "0" in this category, but I'd rather be able to leave it empty so it is less confusing, any way of doing this?
Any help is greatly appreciated.
Thanks.
A