B
Brent_Fanguy
I am trying to create a query that allows a user to
select from 1 to 3 search criteria from a form that run's
a query that uses only the criteria from the form for the
search.
Example Form: Part # _________
Partial Desc _________
Partial Customer PO _________
for the criteria in the query I need to use from 1 to 3
of these search criteria. The problem i have is that two
of these are Like *[Partial]* searches. If they do not
enter anything it yields all records. So i have been
trying to formulat an IIF stmt that only enters the
criteria if there is something to search for.
I have tried:
IIf([Forms]![Test].[Partial_Desc] is not null, "Like *
[Partial_Desc]*")
IIf([Forms]![Test].[Partial_Desc] is not null, 'Like "*
[Partial_Desc]*"')
IIf([Forms]![Test].[Partial_Desc] is not null, (Like "*
[Partial_Desc]*"))
All to no avail.
Any help would be greatly appreciated.
select from 1 to 3 search criteria from a form that run's
a query that uses only the criteria from the form for the
search.
Example Form: Part # _________
Partial Desc _________
Partial Customer PO _________
for the criteria in the query I need to use from 1 to 3
of these search criteria. The problem i have is that two
of these are Like *[Partial]* searches. If they do not
enter anything it yields all records. So i have been
trying to formulat an IIF stmt that only enters the
criteria if there is something to search for.
I have tried:
IIf([Forms]![Test].[Partial_Desc] is not null, "Like *
[Partial_Desc]*")
IIf([Forms]![Test].[Partial_Desc] is not null, 'Like "*
[Partial_Desc]*"')
IIf([Forms]![Test].[Partial_Desc] is not null, (Like "*
[Partial_Desc]*"))
All to no avail.
Any help would be greatly appreciated.