Hi,
Please help me to identify what I am doing wrong. I want to run a macro created in MS Access so in TDA ver 2.7, I created an automation task with the activity, Run Program; picture showing settings and error is attached.
Thanks. regards. MCh
Seems like in this case you cannot use file association to launch an application and open an associated file in it. We are not smart enough here and I'll create an enhancement change request (CR) to address the problem. But you still are able to accomplish your task in a slightly different way:
Submit path and name of Access executable in the Program property.
Submit all the command line parameters including database file name in Arguments property.
Check attached RunMacro.jpg for details. I have Access 2007 installed on my Windows 7 machine. Paths and names may differ from what you have on your system.
The commandline arg of “/x” cannot be used on an excel file only with an Access file. To fire a macro you need to use the export wizard. It will display a page that gives you a choice to fire the macro before or after exporting.
I don’t know how to help you on that one. You are putting together different technologies. The first one is a linked query. With linking a query to a data base in an Excel file you would simple comfigure it to update when the user opens the file.
I have never tried running MSScript on command line.
Connect to access like any other database. Build a query in the query builder or SQL editor. In the automation designer choose the ‘Select to file’ activity and copy in your SQL. Select a file to export the data to. Access isn’t any different than any other database. You can get more info on how to use automation in the videos listed below.