MsLady
Traumatized by Access
- Local time
- Today, 08:08
- Joined
- Jun 14, 2004
- Messages
- 438
I have looked high and low over the internet for a way to do this, but can't seem to find any.
I have a form with 2comboboxes (popup calender) that takes a vacation date range (fromDate and toDate) for each employee (peopleId). This form is bound to a table (tblAbsense) with fields as peopleId, absenceDate, absenceType. After i click the submit button, I would like to make entries in my table for each date in the date range.
Eg. if i select fromDate - toDate: 9/14/06 - 9/21/06. I would like it to fill in each day absent, "only the weekdays" (excluding saturday and sunday) into my tblAbsence.
So, table should take entry like:
peopleId absenceDate absenceType
001 9/14/06 vacation
001 9/15/06 vacation
001 9/18/06 vacation
001 9/19/06 vacation
001 9/20/06 vacation
001 9/21/06 vacation
(notice i have excluded 16th and 17th in my table entries as those dates fall on weekend)?
This is what i'd like to achieve. Can anyone help me?
I have a form with 2comboboxes (popup calender) that takes a vacation date range (fromDate and toDate) for each employee (peopleId). This form is bound to a table (tblAbsense) with fields as peopleId, absenceDate, absenceType. After i click the submit button, I would like to make entries in my table for each date in the date range.
Eg. if i select fromDate - toDate: 9/14/06 - 9/21/06. I would like it to fill in each day absent, "only the weekdays" (excluding saturday and sunday) into my tblAbsence.
So, table should take entry like:
peopleId absenceDate absenceType
001 9/14/06 vacation
001 9/15/06 vacation
001 9/18/06 vacation
001 9/19/06 vacation
001 9/20/06 vacation
001 9/21/06 vacation
(notice i have excluded 16th and 17th in my table entries as those dates fall on weekend)?
This is what i'd like to achieve. Can anyone help me?