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
How to change data arrangement from Raw arrangement into column arrangement
Forefront TMG - Outbound IPSec Connection gets blocked
Windows 2003 Domain controller on a backup server Backup Exec 12.5
sql server agent email job notification in sql server management studio
Microsoft Word can't find the DVZAddin.dll file and Excel can't find DVZXLAddin.dll File?
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)
How to manage the decimal separator in SQL Server 2008
Simple ADODB Connection Error
Supress SQL login in MSACCESS on linked tables
Sony Vaio PCG-531A - Can the OS be upgraded on this notebook??