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
IIS 7.0 Worker process crashes due to ODP.NET?
Hide / Unhide Combo Boxes using Visible property Conditionally
Merge Replication initialization error
In Access how can i have a value returned based on a value present.
interop.microsoft.office.c<wbr />ore.dll.
MBOX TO PST
Email Address in Outlook express
ODBC connection to Oracle 9 db trough Cisco VPN and ISA
NTBACKUP scheduled backup fails - VSS problem?
sql stored procedure select compare dates null issue