I'm not sure what you are trying to do in the first part of the code, however, I'm assuming that the current database is NOT ptotime.mdb, but that it is a code database linked to ptotime. If so, then this should solve your last data type error (13):
Set dbYearEnding =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.