Microsoft
Software
Hardware
Network
Question : IIF query using Like *
Hello
I am trying to build a report query from a combo box that populates with a union so I can add "All" to the list. The all works fine on the box but I now need the IIF I am using the following:
IIf([Forms]![frmReporting]
![SrchVend
or]='All',
Like "'*'",[Forms]![frmReportin
g]![SrchVe
ndor])
it works finr if I put a vendor number in the true side in the '2065' format. How do I get the true portion to select all the records?
Answer : IIF query using Like *
try this in your query design view
field Vendor
Table
criteria IIf([Forms]![frmReporting]
![SrchVend
or]='All',
[Vendor],[
Forms]![fr
mReporting
]![SrchVen
dor])
note that [Vendor] in the criteria row must be the same as the name of the field.
Random Solutions
Add a file extension
Is it possible to enlarge old DOS applications running on Windows XP for easier viewing?
Making a chart see a #DIV/0! error as an empty cell
How do I declare and set variables for the Caption propery of a field in MS Access 2003 Database? (VBA)
Communicator 2007 R2 - randomly won't logon
Validating users with three level security
Automatically close Outlook on log off or shutdown
Icons from Start>All Programs have disappeared
Finding Null in a memo field and what event to use to check the related box
Outlook problem with error 0x80040154 (and others) -- inetcomm issue?