Originally Posted by
ssanfu
Just to be clear on terminology: Tables have fields - Forms have controls.
Some things to think about:
You would need a button to execute the code and 4 unbound controls on the form:
1) Some way to select the employee
2) A start date control
3) An end date control
4) A reason control
The code would need to check:
if the EndDate > StartDate.
if both controls have valid dates
if only a date in the StartDate control, should only create one entry (ex. take 1 sick leave day)
if the Reason control has an entry. (is the reason required?)