Hi there,
I'm creating an employee table that tracks employees, and also is used in automerge to print off bi-monthly timesheets for those employees.
As employees come and go, the field ID is set as the primary key, autonumber. A year from now, employee 3 may leave, and I don't want #3 assigned again so autonumber works great.
My problem arises in trying to get an incremented field (called PageCount) numbered 1 up to the max number of records. This number is printed off on each employees timesheet. Their ID is printed on the form as well to identify them and tie them to their employee record, but the PageCount value is used as an index exactly like sports cards or comic books on the paper timesheets themselves. The shift supervisor collects the paper timesheets at the end of the pay period and counts the PageCount from ie. 1-45. This way they know they have all the timesheets in, with no missing index numbers in between. Employee ID #3 has left, and shouldn't have a timesheet printed or leave holes in the Pagecount procedure. Still, ID 4 must now have a PageCount of 3.
After the employees have been sorted alphabetically, how can I update the PageCount starting at 1 in row 1 up to the # of records in the final record? This will be done repeatedly as employees are added and removed, and cannot affect their autonumber primary key ID.
THANKS!!
I'm creating an employee table that tracks employees, and also is used in automerge to print off bi-monthly timesheets for those employees.
As employees come and go, the field ID is set as the primary key, autonumber. A year from now, employee 3 may leave, and I don't want #3 assigned again so autonumber works great.
My problem arises in trying to get an incremented field (called PageCount) numbered 1 up to the max number of records. This number is printed off on each employees timesheet. Their ID is printed on the form as well to identify them and tie them to their employee record, but the PageCount value is used as an index exactly like sports cards or comic books on the paper timesheets themselves. The shift supervisor collects the paper timesheets at the end of the pay period and counts the PageCount from ie. 1-45. This way they know they have all the timesheets in, with no missing index numbers in between. Employee ID #3 has left, and shouldn't have a timesheet printed or leave holes in the Pagecount procedure. Still, ID 4 must now have a PageCount of 3.
After the employees have been sorted alphabetically, how can I update the PageCount starting at 1 in row 1 up to the # of records in the final record? This will be done repeatedly as employees are added and removed, and cannot affect their autonumber primary key ID.
THANKS!!
Comment