Someplace you should have two unbound controls to enter the start date and the end date.
In (pseudo) code:
This is a FOR...NEXT loop. There are many types of loops.
Code:
declare variables
read the value from the start date control
read the value from the end date control
subtract the dates (use the DateDiff() function)
'This gives the number of times to loop.
assign startdate to a variable
For i = 1 to NumDaysToLoop
INSERT SQL statement - need to add required data EmpID, Start & end date
increment the date variable by 1 (DateAdd() function)
Next
Where can I go to get good info on loops?
Google "for next loops VBA"
Here is one: http://ms-access-tips.blogspot.com/2...-learning.html