Cornerback
New Member
- Joined
- Mar 20, 2013
- Messages
- 4
Hi everybody,
my current task is to evaluate data from a MSSQL-DB. This is done by creating a pivot cache, from which pivot charts are generated. This works fine
Every DB-entry has a field with a start date and a field with a end-date. My task is to get the number of days between those two dates for EVERY entry in the DB and then calculate the average of those days. (the entries are selected by entering the start- and end-date in a userform, if this does matter...)
Any ideas how to do this in VBA?
kind regards
Cornerback
my current task is to evaluate data from a MSSQL-DB. This is done by creating a pivot cache, from which pivot charts are generated. This works fine

Every DB-entry has a field with a start date and a field with a end-date. My task is to get the number of days between those two dates for EVERY entry in the DB and then calculate the average of those days. (the entries are selected by entering the start- and end-date in a userform, if this does matter...)
Any ideas how to do this in VBA?
kind regards
Cornerback