DataTable.Load() Throws Error: Undefined function 'CountWeekDays' in expression

前端 未结 1 880
太阳男子
太阳男子 2021-01-23 06:07

I\'m using an Access database and trying to load a DataTable object but am receiving the subjected error. My query calls a public function named \'CountWeekDays\' within a stand

相关标签:
1条回答
  • 2021-01-23 06:48

    User-defined VBA functions can be used in Access queries only when the query is run from within Access itself. If you will be running the query from within a .NET application then the query will have to return just the start/end dates and your .NET code will have to calculate the number of weekdays between them.

    0 讨论(0)
提交回复
热议问题