I have a Search form that gathers Parameters to pass to a query.
When the Search button is clicked it opens up a query with the Values from the Form.
Below is what I have in the Criteria for field (YrBuilt) in the Query. I have tested and tested and I keep getting a blank query.
Like nz(([Sales].[YrBuilt])>[Forms]![Search]![YrBltToInput] And ([Sales].[YrBuilt])<[Forms]![Search]![YrBltFromInput],"*")
Or
Like nz(([Sales].[YrBuilt])Between [Forms]![Search]![YrBltToInput] And [Forms]![Search]![YrBltFromInput],"*")
and a few other Similiar attempts
If I change it to
Like nz([Forms]![Search]![YrBltInput,"*")
This works find But I only get a single year I want a Range. What am I doing wrong???
TIA
When the Search button is clicked it opens up a query with the Values from the Form.
Below is what I have in the Criteria for field (YrBuilt) in the Query. I have tested and tested and I keep getting a blank query.
Like nz(([Sales].[YrBuilt])>[Forms]![Search]![YrBltToInput] And ([Sales].[YrBuilt])<[Forms]![Search]![YrBltFromInput],"*")
Or
Like nz(([Sales].[YrBuilt])Between [Forms]![Search]![YrBltToInput] And [Forms]![Search]![YrBltFromInput],"*")
and a few other Similiar attempts
If I change it to
Like nz([Forms]![Search]![YrBltInput,"*")
This works find But I only get a single year I want a Range. What am I doing wrong???
TIA