dbTalk Databases Forums  

Help with listing

comp.databases.ms-access comp.databases.ms-access


Discuss Help with listing in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Glazer
 
Posts: n/a

Default Help with listing - 04-06-2010 , 08:39 AM






I have an Access DB with a Table containing the fields
ID
Pilot
Flight Date

Each Pilot accessing the DB enters the date of his flight each time he makes
a flight.

Now I would like to be able to extract from this Table for each Pilot the
number of times the Pilot has flown in each month. How can I do this?

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Help with listing - 04-06-2010 , 09:47 AM






Mike Glazer wrote:

Quote:
I have an Access DB with a Table containing the fields
ID
Pilot
Flight Date

Each Pilot accessing the DB enters the date of his flight each time he makes
a flight.

Now I would like to be able to extract from this Table for each Pilot the
number of times the Pilot has flown in each month. How can I do this?


Open up the query builder. Select your table. Drag the ID and Pilot
flds to columns. In the third column enter
YyMm : Format([Flight Date],"yyyymm")
In the 4th column enter
Cnt : ID
BTW, the column heading Cnt is separated by the field name with a colon.

From the menu bar select View/Totals.

For ID and Pilot and YyMm columns they should be GroupBy. Change
GroupBy to Count for column Cnt.

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.