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
Upload/Download form (.doc) from folders via Userform
HTTP_500 Error in SBS 2003 Exchange ActiveSync - FolerSync Step
end error beeping in windows web server 2008
MS Access Radio Button and Text Field Required....
WinXP Offline Files - Disaster Recovery
How do you show deadlocks in SQL Server 2008?
Printing from .NET Windows Service - Object reference not set to an instance of an object
Difference between Server 2003 Appliance edition and server 2003 R2
SQL Reporting Services - Format Datetime {0:D} culture?
DTS on SQL2008