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  

How to get query to return total using wildcard



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 04:12 PM posted to microsoft.public.access.queries
workweek
external usenet poster
 
Posts: 3
Default How to get query to return total using wildcard

I have a query that has 3 criterion in it as follows: Business Unit,
Location, Category. These criterion are all chosen by the user on a loaded
form. Currently the results then are based on what is chosen from a drop
down list for each of the 3 criterion. The user also wants a total option.
Meaning if Business Unit is chosen, and Location and Category are not chosen
(or if a wildcard is chosen) the result returns a total based on that
Business Unit. How do I write this in the query?
  #2  
Old March 9th, 2010, 08:59 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default How to get query to return total using wildcard

You have to use a union query, one part for details and the other for the
totals.
Use criteria from the 'total option' to determine which part returns results.

--
Build a little, test a little.


"workweek" wrote:

I have a query that has 3 criterion in it as follows: Business Unit,
Location, Category. These criterion are all chosen by the user on a loaded
form. Currently the results then are based on what is chosen from a drop
down list for each of the 3 criterion. The user also wants a total option.
Meaning if Business Unit is chosen, and Location and Category are not chosen
(or if a wildcard is chosen) the result returns a total based on that
Business Unit. How do I write this in the query?

 




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:01 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.