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 Problem



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2004, 12:04 PM
Niall
external usenet poster
 
Posts: n/a
Default Query Problem

I have a query which shows me the following data:

Name 2003 2004 2005
Joe 5 6 7
Bob 8 9 10
James 1 2 3

These are the number of days absent by staff for the
respective year. I am now trying to build a query that
asks a user to select a year and will return the values
for that year, eg the user enters "2004" and the output is:

Name 2004
Joe 6
Bob 9
James 2

Would anyone have any ideas on this? much appreciated

Niall
  #2  
Old June 3rd, 2004, 01:24 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Query Problem

Niall

You haven't indicated whether this is a "cross-tab" query, or if your data
is organized like a spreadsheet. You haven't provided the SQL statement of
your query.

One approach might be to add a parameter in the criterion section of your
query definition. That parameter would prompt the user to enter a value (a
year), then return the values for that year. Can you add "2004" in the
criterion for your year in your current query and get the results you want?
If so, you can change "2004" to "[Enter a year]" (without the quotes).

--
Good luck

Jeff Boyce
Access MVP

 




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 09:16 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.