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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query to show ALL



 
 
Thread Tools Display Modes
  #1  
Old July 6th, 2008, 09:49 PM posted to microsoft.public.access.queries
Dave
external usenet poster
 
Posts: 55
Default Query to show ALL

Access 2003

I have a form with several drop downs for the user to use to "filter" for a
report.

in the criteria of the query I have done this:
Forms!frmReports.txtSite

this seems to work fine
HOWEVER
If they do not make a selection (the drop down is blank) I want the results
of the query to be for ALL choices in that drop down.

How would I do that?

thanks

dave

  #2  
Old July 6th, 2008, 10:07 PM posted to microsoft.public.access.queries
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Query to show ALL

Put

Forms!frmReports.txtSite Or (Forms!frmReports.txtSite IS NULL)

as the criteria.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"dave" wrote in message
...
Access 2003

I have a form with several drop downs for the user to use to "filter" for
a report.

in the criteria of the query I have done this:
Forms!frmReports.txtSite

this seems to work fine
HOWEVER
If they do not make a selection (the drop down is blank) I want the
results of the query to be for ALL choices in that drop down.

How would I do that?

thanks

dave



  #3  
Old July 6th, 2008, 10:25 PM posted to microsoft.public.access.queries
Dave
external usenet poster
 
Posts: 55
Default Query to show ALL

Thank you sir - that fixed me up.

Dave

"Douglas J. Steele" wrote in message
...
Put

Forms!frmReports.txtSite Or (Forms!frmReports.txtSite IS NULL)

as the criteria.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"dave" wrote in message
...
Access 2003

I have a form with several drop downs for the user to use to "filter" for
a report.

in the criteria of the query I have done this:
Forms!frmReports.txtSite

this seems to work fine
HOWEVER
If they do not make a selection (the drop down is blank) I want the
results of the query to be for ALL choices in that drop down.

How would I do that?

thanks

dave



 




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


All times are GMT +1. The time now is 11:47 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.