IIF parameter
- From: "Angel_G" <nomail@xxxxxxxxx>
- Date: Thu, 29 Jun 2006 11:13:24 -0700
Hi! I am trying to write a query that based on a Form's (Salesfrm) Selection
Combo Box(CompanyCombo) the query will provide data.
I am trying to use the IIF statement with out luck (not sure if there is a
better way to do this) .
I need the query to lookup records IF the Selection value = "Company1" then
Like "*40000*" Or Like "*40001*" Or Like "*40002*" Or Like "*40003*" Or Like
"*40060*"
But if selection value = "Company2" then Like "*40030*" Or Like "*40031*"
But if selection value = "All Companies" then Like "*40000*" Or Like
"*40001*" Or Like "*40002*" Or Like "*40003*" Or Like "*40060*" or Like
"*40030*" Or Like "*40031*" (note: I can not use a wild card here because I
do not want to inclue all accounts)
Any ideas are more than welcomed.
Thank you!
.
- Follow-Ups:
- Re: IIF parameter
- From: Conan Kelly
- Re: IIF parameter
- Prev by Date: Re: Need to pull out every third record
- Next by Date: Re: Need to pull out every third record
- Previous by thread: "Group By" makes Simple Query Run FOREVER
- Next by thread: Re: IIF parameter
- Index(es):
Relevant Pages
|
|