MwTV
MIS
- Mar 9, 2007
- 99
Currently exploring the use of an Access form (as opposed to a auto-exec macro) to schedule approximately 10 make-table queries in sequential order on a weekly basis.
The make-table queries are based on pass-through queries that are used to extract data from a SQL-Server database.
For example, something along the lines of the following;
Option Compare Database
Option Explicit
Private Sub Form_Open(Cancel As Integer)
Call DoCmd.SetWarnings(False)
Call CurrentDb.QueryDefs!MyQuery1.Execute
Call CurrentDb.QueryDefs!MyQuery2.Execute
Call CurrentDb.QueryDefs!MyQuery3.Execute
Call CurrentDb.QueryDefs!MyQuery4.Execute
Call CurrentDb.QueryDefs!MyQuery5.Execute
.
.
.
Call DoCmd.SetWarnings(True)
End Sub
Questions;
Is it possible to use this approach to schedule the make-table queries that are based on the passthrough queries?
(I have heard that scheduling uses the SYSTEM account that does not allow network access.)
What are the advantages/disadvantages to using a form to schedule the action queries relative to using an auto-exec macro?
Any additional insight is greatly appreciated.
Thanks in advance.
The make-table queries are based on pass-through queries that are used to extract data from a SQL-Server database.
For example, something along the lines of the following;
Option Compare Database
Option Explicit
Private Sub Form_Open(Cancel As Integer)
Call DoCmd.SetWarnings(False)
Call CurrentDb.QueryDefs!MyQuery1.Execute
Call CurrentDb.QueryDefs!MyQuery2.Execute
Call CurrentDb.QueryDefs!MyQuery3.Execute
Call CurrentDb.QueryDefs!MyQuery4.Execute
Call CurrentDb.QueryDefs!MyQuery5.Execute
.
.
.
Call DoCmd.SetWarnings(True)
End Sub
Questions;
Is it possible to use this approach to schedule the make-table queries that are based on the passthrough queries?
(I have heard that scheduling uses the SYSTEM account that does not allow network access.)
What are the advantages/disadvantages to using a form to schedule the action queries relative to using an auto-exec macro?
Any additional insight is greatly appreciated.
Thanks in advance.