Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2008, 08:41 AM
tstreeter tstreeter is offline
Junior Member
 
Join Date: Apr 2008
Posts: 6
Default Command to call Access Macro

Is there a way through the SQL portion of the appliaction to connect to a Access DB and then reference the macro that resides within and execute?

I'm currently managing several DB to populate data for a Web Dashboard that's Flash Based.

Within each DB I have a macro that runs several Make Table Query', Update,Delete Querys, Append Querys, etc, etc.

I'm currently have AA macros created through Web Recorder that Open the DB via a shortcut placed on the taskbar and then they navigate to the Access Macro and execute.

However, this method is becoming cumbersomeas currently there are aprox 10 tasks that run through the night. If one querys run longer than the other. The remaining tasks will tend to run on top of each other which in turns causes confusion in the playback

I believe if I can get the SQL portion to work I will be able to eliminate all of the mouse movement issues and just have it operate as a command/exe.

Thanks

Last edited by tstreeter : 09-11-2008 at 08:44 AM.
Reply With Quote
  #2 (permalink)  
Old 09-12-2008, 12:33 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Using Database command, you can connect to your database and issue SQL queries or INSERT/UPDATE/DELETE statements. You can also run any procedure created and stored in your database. Unfortunately, it does not provide an option to call a macro. However, you can use 'Insert Keystrokes' command to run Access macro. Keystrokes are more reliable as they will work irrespective of change in screen resolution.

You can chain your 10 tasks together using 'Run Task' command. In that way the next task will run only when the first ends. Create one task and within this task run other tasks one after another and schedule just this task. That way you do not need to schedule different tasks.

We have attached sample tasks for your reference. Please copy .atmn files under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Copy sample.mdb under C:\.
The Main Task will run Macro1 and then it will call Sub Task that will run Macro2 and Macro3 of sample.mdb.

Hope that helps.
Attached Files
File Type: zip CallAccessMacro.zip (24.1 KB, 5 views)
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved