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
Is there a way to include a template with a Word document?
Populate Excel Cells from SQL
Solve this backup error, "The storage control block address is invalid."
Can I use a hard drive and a enclosure to backup a Win98 computer?
ISA Firewall - Open port 81 to Webserver on the Server
Importing/Linking Data from URL
ado.net reading first sheet of excel file.
PrivateProfileString
Want to update a field with values from another field within the same table if it meets a condition
how to create a TreeView and Bind its nodes to a DataTable?