bob,you are great! It works.
But I define an access.application because we have lot qureies being setup in an Access file. some report analysis don't use VBA.
My VBA's function is focus on automation the process and format output.
the Report analyst don't need to know VBA, and they can just...