hardin4019
Registered User.
- Local time
- Today, 18:27
- Joined
- Apr 28, 2010
- Messages
- 15
Hi Guys,
2 separate questions this time. I know the rest of the universe has moved on to a newer version, but bare in mind, I am using MS Access 97.
1. I am creating an attendance DB, I have forms for entering employee info, attendance info, editing attendance info, and running reports.
In the attendance info box form, you select EmployeeName, AbscenceType, a Date, etc, and I have a button that saves the record and goes on to a new record. What would be the best way to do some checking against the selected EmployeeName, AbscenceType, and Date against the table that holds the data on Attendance. IE, I want to make sure that you don't enter John Doe for Being tardy twice in one day, or mark him abscent and tardy, etc. You get the idea....
2. I have in the Attendance form I am using "Calendar control 8.0" for the Date control. I can only select a single date. If someone wants to schedule a vacation, I would like to be able to choose a beginning and ending date, then I am guessing create a loop that fills in data in the table from start date to end date with all the needed employee info that would already be supplied from the form. Where as right now, I use the form to manually enter each day of a person's vacation.
Ideas? Different date control? Make AbscenceType "Vacation" change the date control to a different subform? Also would need rather in depth help with the code, as I'm not up on my VB in any way shape or form.
2 separate questions this time. I know the rest of the universe has moved on to a newer version, but bare in mind, I am using MS Access 97.
1. I am creating an attendance DB, I have forms for entering employee info, attendance info, editing attendance info, and running reports.
In the attendance info box form, you select EmployeeName, AbscenceType, a Date, etc, and I have a button that saves the record and goes on to a new record. What would be the best way to do some checking against the selected EmployeeName, AbscenceType, and Date against the table that holds the data on Attendance. IE, I want to make sure that you don't enter John Doe for Being tardy twice in one day, or mark him abscent and tardy, etc. You get the idea....
2. I have in the Attendance form I am using "Calendar control 8.0" for the Date control. I can only select a single date. If someone wants to schedule a vacation, I would like to be able to choose a beginning and ending date, then I am guessing create a loop that fills in data in the table from start date to end date with all the needed employee info that would already be supplied from the form. Where as right now, I use the form to manually enter each day of a person's vacation.
Ideas? Different date control? Make AbscenceType "Vacation" change the date control to a different subform? Also would need rather in depth help with the code, as I'm not up on my VB in any way shape or form.