I have a table “tblEvents” which is a list of scheduled Events from multiple teams.
The fields in the table are:
ItemID - Autonumber
Date - Date/Time
Time – Date/Time
School – Text
Event – Text
I am attempting to create a query that will combine the Events into one record if they occur on the same date.
This is what I have: “qryEvents”
ItemID Date Time School Event
1 1/7/06 5:00 PM LHS Game
2 1/7/06 7:30 PM SWJH Game
3 1/8/06 4:00 PM CJH Practice
4 1/8/06 5:30 PM WJH Meeting
5 1/9/06 4:00 PM CJH Practice
This is what I want: “qryEventsByDate”
Date Description
1/7/06 5:00 PM – LHS Game
7:00 PM – SWJH Game
1/8/06 4:00 PM – CJH Practice
5:30 PM – WJH Meeting
1/9/06 4:00 PM – CJH Practice
I have attempted to use the Concatenate() Function created by Duane Hookom.
However I have two issues:
1. Hookom’s Function uses two tables and I only have one table.
2. I am trying to use the “Date” field in the WHERE, which I believe is causing the data type errors I am getting.
Any help with getting Hookom’s function to work for me or other solutions will be appreciated.
Thanks
Accel45
The fields in the table are:
ItemID - Autonumber
Date - Date/Time
Time – Date/Time
School – Text
Event – Text
I am attempting to create a query that will combine the Events into one record if they occur on the same date.
This is what I have: “qryEvents”
ItemID Date Time School Event
1 1/7/06 5:00 PM LHS Game
2 1/7/06 7:30 PM SWJH Game
3 1/8/06 4:00 PM CJH Practice
4 1/8/06 5:30 PM WJH Meeting
5 1/9/06 4:00 PM CJH Practice
This is what I want: “qryEventsByDate”
Date Description
1/7/06 5:00 PM – LHS Game
7:00 PM – SWJH Game
1/8/06 4:00 PM – CJH Practice
5:30 PM – WJH Meeting
1/9/06 4:00 PM – CJH Practice
I have attempted to use the Concatenate() Function created by Duane Hookom.
However I have two issues:
1. Hookom’s Function uses two tables and I only have one table.
2. I am trying to use the “Date” field in the WHERE, which I believe is causing the data type errors I am getting.
Any help with getting Hookom’s function to work for me or other solutions will be appreciated.
Thanks
Accel45