If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query parameters set from form, if is null how do I display allrec
The problem is, I have created a query that obtains its parameters from two combo boxes, ei, this first combo provides a supplier, the second displays that product range for the supplier. my question is? How do I create a query that will display all records if one of the criteria fields is empty. sort of -- IIf(isnull([forms].[Reports].[supplier],"*")) -- Now i hope i dont look to dumb, but I cant find any simple answers anywhere.
Any help would be seriously appreciated. Kind regards Dan |
#2
|
|||
|
|||
Query parameters set from form, if is null how do I display allrec
WHERE SupplierID = [Forms].[Reports].[supplier] OR
[Forms].[Reports].[supplier] IS NULL BTW, I wouldn't name a form Reports: that's a reserved word, and can lead to problems. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Daniel" wrote in message ... The problem is, I have created a query that obtains its parameters from two combo boxes, ei, this first combo provides a supplier, the second displays that product range for the supplier. my question is? How do I create a query that will display all records if one of the criteria fields is empty. sort of -- IIf(isnull([forms].[Reports].[supplier],"*")) -- Now i hope i dont look to dumb, but I cant find any simple answers anywhere. Any help would be seriously appreciated. Kind regards Dan |
#3
|
|||
|
|||
Query parameters set from form, if is null how do I display al
Worked Perfectly, thanks Douglas
"Douglas J. Steele" wrote: WHERE SupplierID = [Forms].[Reports].[supplier] OR [Forms].[Reports].[supplier] IS NULL BTW, I wouldn't name a form Reports: that's a reserved word, and can lead to problems. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Daniel" wrote in message ... The problem is, I have created a query that obtains its parameters from two combo boxes, ei, this first combo provides a supplier, the second displays that product range for the supplier. my question is? How do I create a query that will display all records if one of the criteria fields is empty. sort of -- IIf(isnull([forms].[Reports].[supplier],"*")) -- Now i hope i dont look to dumb, but I cant find any simple answers anywhere. Any help would be seriously appreciated. Kind regards Dan |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display Parameter from Form on Report | sara | Setting Up & Running Reports | 10 | July 19th, 2004 04:54 PM |
Display a query result in form | Le Tran | New Users | 0 | June 15th, 2004 09:08 PM |
Access inconsistencies | Hoopie | Running & Setting Up Queries | 2 | June 15th, 2004 10:53 AM |
Query Form: Print Report | Dennis | Running & Setting Up Queries | 1 | June 6th, 2004 01:08 PM |
Query By Form | Craig | Running & Setting Up Queries | 2 | June 1st, 2004 01:10 AM |