ahuntley15
New member
- Local time
- Today, 07:43
- Joined
- Jan 21, 2009
- Messages
- 2
I am trying to calculate transit times in an access query for a large amount of shipments and need to exclude weekends. I have tried using the SQL functions:
MyDays: CntDays([StartDate],[EndDate])
and
SELECT [StartDte], [EndDte], DateDiffExclude2([StartDte], [EndDte], "17") as WkDays
... in normal queries but to no luck. I have copy and pasted the code into new modules for each of these functions but am still receiving this error: 'undefined function: cntdays in expression.'
Also, when the SQL states Start date and end date do I need to enter the two date fields already entered into the database or the numbers 2 and 6 for monday through friday?
Any help would be greatly appreciated.
MyDays: CntDays([StartDate],[EndDate])
and
SELECT [StartDte], [EndDte], DateDiffExclude2([StartDte], [EndDte], "17") as WkDays
... in normal queries but to no luck. I have copy and pasted the code into new modules for each of these functions but am still receiving this error: 'undefined function: cntdays in expression.'
Also, when the SQL states Start date and end date do I need to enter the two date fields already entered into the database or the numbers 2 and 6 for monday through friday?
Any help would be greatly appreciated.