A
Andre Laplume via AccessMonster.com
I have a form/button that issues VBA commands to run multiple queries, modify
some tables and finally open an Excel template. The template is set to
refresh on open against one of the just created Access tables. Now that I ma
confident everything is ok data-wise, I want MsAccess to open (?) the
template, refresh the pivots AND THEN turn the auto-refresh feature off and
save the template file to a share under a new name. (Auto-refresh must be
off since the final resting place of the file will not be able to read the db)
..
Can I do all this frm with in MsAccess? I'd expect the code to be short, I
am just not sure:
1) what the code would look like
2) when does Access give up control to Excel
3) where the code to do the pivot-refresh/save-the-file needs to go.
Thanks!
--
OOPs a typo...the statement that DOES NOT work is:
AdjAmt: Sum(IIf([TYPE]=2 And Left(Date(),2)="07",[Amt]*[Percent],IIf([TYPE]=1,
some tables and finally open an Excel template. The template is set to
refresh on open against one of the just created Access tables. Now that I ma
confident everything is ok data-wise, I want MsAccess to open (?) the
template, refresh the pivots AND THEN turn the auto-refresh feature off and
save the template file to a share under a new name. (Auto-refresh must be
off since the final resting place of the file will not be able to read the db)
..
Can I do all this frm with in MsAccess? I'd expect the code to be short, I
am just not sure:
1) what the code would look like
2) when does Access give up control to Excel
3) where the code to do the pivot-refresh/save-the-file needs to go.
Thanks!
--
OOPs a typo...the statement that DOES NOT work is:
AdjAmt: Sum(IIf([TYPE]=2 And Left(Date(),2)="07",[Amt]*[Percent],IIf([TYPE]=1,
[Amt]*[Percent],0)))