A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query parameters set from form, if is null how do I display allrec



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2004, 01:02 PM
Daniel
external usenet poster
 
Posts: n/a
Default 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  
Old July 11th, 2004, 02:02 PM
Douglas J. Steele
external usenet poster
 
Posts: n/a
Default 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  
Old July 12th, 2004, 05:52 AM
Daniel
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.