dbTalk Databases Forums  

Executing MS Access Macro in DTS : Problem closing Access

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Executing MS Access Macro in DTS : Problem closing Access in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ian
 
Posts: n/a

Default Executing MS Access Macro in DTS : Problem closing Access - 05-04-2004 , 08:16 PM






Hi

I've scheduled a DTS job to execute a MS Access Macro. It runs the macro using an "Execute Process Task" and the macro parameters are entered in the parameter field.

Step 1
Win32 Process : C:\Program Files\Microsoft Office\Office\MSACCESS.EX
Parameters : "G:\Database\DB_One.MDB" /x MAC_AutoImport
Step 2
Win32 Process : C:\Program Files\Microsoft Office\Office\MSACCESS.EX
Parameters : "G:\Database\DB_Two.MDB" /x MAC_AutoImport

When I run the DTS job locally it runs fine. There are two steps each executing different Access Macros. Both these macros execute and run to completion. When each step ends the Access database closes

However when the scheduled DTS job runs on the server the process appears to stall at the completion of the first step and the Access DB remains open. When our network administrator closes the DB the job then moves onto the next step. The puzzling thing is that at the completion of the second step the DB closes and the job completes.

We've checked all the permissions/paths/privlidges and believe they are all OK.

If anyone can suggest an alternative I'd greatly appreciate it.

I have read some posts about executing the Macro via a VBScript. Would anyone be able to point me toward example code for doing this

Regards
Ian


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.