Can someone please help.
I have a table which stores date ranges of students training (tblTraining)with the following fields:
StudentID, FromDate, ToDate
I wish to use a form where the user can enter 2 dates eg StartDate & EndDate.
With these 2 dates entered I need to loop through tblTraining & return all the individual days for each student & write them back to a temporary table eg:
Form Data (User criteria)
txtStartDate= 10/02/05 txtEndDate= 12/02/05
tblTraining
StudentID FromDate ToDate
1 01/02/05 13/02/05
2 15/02/05 18/02/05
3 13/02/05 19/02/05
4 01/03/05 08/03/05
5 10/02/05 18/02/05
Results
StudentID Date
1 10/02/05
1 11/02/05
1 12/02/05
5 10/02/05
5 11/02/05
5 12/02/05
etc.................
Thanks in advance
I have a table which stores date ranges of students training (tblTraining)with the following fields:
StudentID, FromDate, ToDate
I wish to use a form where the user can enter 2 dates eg StartDate & EndDate.
With these 2 dates entered I need to loop through tblTraining & return all the individual days for each student & write them back to a temporary table eg:
Form Data (User criteria)
txtStartDate= 10/02/05 txtEndDate= 12/02/05
tblTraining
StudentID FromDate ToDate
1 01/02/05 13/02/05
2 15/02/05 18/02/05
3 13/02/05 19/02/05
4 01/03/05 08/03/05
5 10/02/05 18/02/05
Results
StudentID Date
1 10/02/05
1 11/02/05
1 12/02/05
5 10/02/05
5 11/02/05
5 12/02/05
etc.................
Thanks in advance