Hi,
I have a table with the following fields :
ID, Name, WorkDate, CheckTime
ID is a unique number for each employee.
CheckTime contains the hour someone comes in or goes out the office.
So, each employee has at least two records (mostly four) a day in the table.
Example of the table :
1 Frank Devon 01/01/2005 08:00
1 Frank Devon 01/01/2005 12:00
1 Frank Devon 01/01/2005 12:30
1 Frank Devon 01/01/2005 16:00
2 Paul Hogan 01/01/2005 08:15
2 Paul Hogan 01/01/2005 12:00
3 Kim Daltrey 02/01/2005 08:10
3 Kim Daltrey 02/01/2005 12:00
3 Kim Daltrey 02/01/2005 12:30
3 Kim Daltrey 02/01/2005 16:00
Now, I need to make a table or query from these records which contains all the checktimes in one row per person of the query or table, for example again :
1 Frank Devon 01/01/2005 08:00 12:00 12:30 16:00
2 Paul Hogan 01/01/2005 08:15 12:00
3 Kim Daltrey 02/01/2005 08:10 12:00 12:30 16:00
Anyone who can help me out with this one?
The first (original) table was imported from an external database program.
Thanks already.
Pascal
I have a table with the following fields :
ID, Name, WorkDate, CheckTime
ID is a unique number for each employee.
CheckTime contains the hour someone comes in or goes out the office.
So, each employee has at least two records (mostly four) a day in the table.
Example of the table :
1 Frank Devon 01/01/2005 08:00
1 Frank Devon 01/01/2005 12:00
1 Frank Devon 01/01/2005 12:30
1 Frank Devon 01/01/2005 16:00
2 Paul Hogan 01/01/2005 08:15
2 Paul Hogan 01/01/2005 12:00
3 Kim Daltrey 02/01/2005 08:10
3 Kim Daltrey 02/01/2005 12:00
3 Kim Daltrey 02/01/2005 12:30
3 Kim Daltrey 02/01/2005 16:00
Now, I need to make a table or query from these records which contains all the checktimes in one row per person of the query or table, for example again :
1 Frank Devon 01/01/2005 08:00 12:00 12:30 16:00
2 Paul Hogan 01/01/2005 08:15 12:00
3 Kim Daltrey 02/01/2005 08:10 12:00 12:30 16:00
Anyone who can help me out with this one?
The first (original) table was imported from an external database program.
Thanks already.
Pascal