KellySmith
01-16-2001, 05:22 AM
Hi,
I am working in Access '97.
I have several forms and reports, which have 2 date fields. The first field (a textbox - Audit_Date) pulls a date from the database. The second field (Next_Audit) uses the following:
=DateAdd("m",1,Audit_Date)
to automatically schedule the next audit one month from 'Audit Date'.
My problem is how can I prevent it from scheduling audits on weekends and holidays?
I have tried using various permutations of 'datepart' to try and exclude Saturday and Sunday, but to no avail.
It's been years since I created anything in Access, and I learned on 2.0, so I'm pretty rusty. Any help would be greatly appreciated.
Kelly Smith
I am working in Access '97.
I have several forms and reports, which have 2 date fields. The first field (a textbox - Audit_Date) pulls a date from the database. The second field (Next_Audit) uses the following:
=DateAdd("m",1,Audit_Date)
to automatically schedule the next audit one month from 'Audit Date'.
My problem is how can I prevent it from scheduling audits on weekends and holidays?
I have tried using various permutations of 'datepart' to try and exclude Saturday and Sunday, but to no avail.
It's been years since I created anything in Access, and I learned on 2.0, so I'm pretty rusty. Any help would be greatly appreciated.
Kelly Smith