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 for attendance



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2008, 06:27 PM posted to microsoft.public.access.queries
inungh
external usenet poster
 
Posts: 177
Default query for attendance

I have an attendance database to record student atendance.

My database data like following:

studentID, Attendance date, Attendance code
1 Dec/01/2008 Absent
1 Dec/10 /2008 Sick
1 Nov/5/2008 Late


I need a query report like following:

Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thur Fri
Nov 1 2 3 4
5 6 7
WK WK X X
Late X X

Dec 1 2 3 4 5 6 7 8 9
10 11 12
A X X X X WK WK X X Sick
X X


It is a calendar like align weekday report.

If students attend to school then mark "X", but no data in the
database.

I can use 12 queries to union them in one query.

The only thing is I need to know which column to put the data, because
I can not assume same date on the same column.

Are there any way to get this result without temparory tables?

Your help is great appreciated,

  #2  
Old December 11th, 2008, 09:34 PM posted to microsoft.public.access.queries
Golfinray
external usenet poster
 
Posts: 1,597
Default query for attendance

Google concantenate fields in Access. I know there are some solutions out
there.

"inungh" wrote:

I have an attendance database to record student atendance.

My database data like following:

studentID, Attendance date, Attendance code
1 Dec/01/2008 Absent
1 Dec/10 /2008 Sick
1 Nov/5/2008 Late


I need a query report like following:

Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thur Fri
Nov 1 2 3 4
5 6 7
WK WK X X
Late X X

Dec 1 2 3 4 5 6 7 8 9
10 11 12
A X X X X WK WK X X Sick
X X


It is a calendar like align weekday report.

If students attend to school then mark "X", but no data in the
database.

I can use 12 queries to union them in one query.

The only thing is I need to know which column to put the data, because
I can not assume same date on the same column.

Are there any way to get this result without temparory tables?

Your help is great appreciated,


 




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 02:18 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.