I solved my problem with WorkFunction.DSum by carefully matching the format of a date field with the target database using the excel Text function.
The problem was obfuscated by the fact that the excel DSUM function seemed to work on examples of criteria blocks where DSum failed. And of course DSum did work on some examples.
I developed the test harness test_dsum to methodically explore some simplified test data. The ability to organize and record results soon led to the solution.
The description from test_dsum documents the testing ;
I am attaching the test_dsum source code because I think it does a good job of managing simple testing, and it could be adapted to other test problems
Bookmarks