472,958 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

How to Trigger Macros in a Access DB from Another Access DB

Hi,

I have three Access Databases, say A, B and Main, in which data flows
between Main and A, Main and B. Within A and B, there are macros that
trigger computation within the databases. I need to call these macros
in A and B from Main database.

My understanding is that ODBC is used for SQL based queries, not for
calling modules or macros within the databases. What should I build
to create a control within the Main database such that it will call a
macro within another database?

Thanks in advance,
Momoko
Nov 13 '05 #1
3 1863
On 24 Jun 2004 20:23:25 -0700, mo*********@hotmail.com (Momoko) wrote:

Automation.

Or if it's just a single invocation, the /x command line argument.

-Tom.

Hi,

I have three Access Databases, say A, B and Main, in which data flows
between Main and A, Main and B. Within A and B, there are macros that
trigger computation within the databases. I need to call these macros
in A and B from Main database.

My understanding is that ODBC is used for SQL based queries, not for
calling modules or macros within the databases. What should I build
to create a control within the Main database such that it will call a
macro within another database?

Thanks in advance,
Momoko


Nov 13 '05 #2
You haven't said whether A and B are back ends (data tables), with a single
front end (forms, reports, etc) Main, or the other way around.
In general, it's usually a better design to have all your computations
together in a single front end database, rather than stored together with
the data.

I'm also a bit concerned that these macros are triggering computation within
the databases.
This sounds as if you are storing calculated values, which is seldom a good
use of the relational capabilities of Access.

HTH
- Turtle

"Momoko" <mo*********@hotmail.com> wrote in message
news:fc*************************@posting.google.co m...
Hi,

I have three Access Databases, say A, B and Main, in which data flows
between Main and A, Main and B. Within A and B, there are macros that
trigger computation within the databases. I need to call these macros
in A and B from Main database.

My understanding is that ODBC is used for SQL based queries, not for
calling modules or macros within the databases. What should I build
to create a control within the Main database such that it will call a
macro within another database?

Thanks in advance,
Momoko

Nov 13 '05 #3
You can use Access Automation, DDE, or Shell to MSACCESS.EXE to
run a macro from a command line.

"Momoko" <mo*********@hotmail.com> wrote in message
news:fc*************************@posting.google.co m...
Hi,

I have three Access Databases, say A, B and Main, in which data flows
between Main and A, Main and B. Within A and B, there are macros that
trigger computation within the databases. I need to call these macros
in A and B from Main database.

My understanding is that ODBC is used for SQL based queries, not for
calling modules or macros within the databases. What should I build
to create a control within the Main database such that it will call a
macro within another database?

Thanks in advance,
Momoko

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rebecca Lovelace | last post by:
For some reason in Enterprise Manager for SQL Server 2000, I cannot put the following line into a trigger: select * into #deleted from deleted When I hit the Apply button I get the following...
9
by: Lauren Quantrell | last post by:
Is there a way to create a text file (such as a Windows Notepad file) by using a trigger on a table? What I want to do is to send a row of information to a table where the table: tblFileData has...
12
by: David Powell | last post by:
Because my work area won't have an Access programmer next year, I've been asked to rebuild their coded application as a set of modular tools. The idea is that a non-programmer will be able to...
4
by: d0wsdkn02 | last post by:
I have an ASP.NET application that performs ADO.NET commands that cause triggers to be run in SQL Server 2000. My question is how would I best access the user ID from my custom .NET Principal in...
4
by: Jim Devenish | last post by:
We have an Access database with Access front-end to Access back-end. Another company has installed a separate application using SQLServer. At present certain information in the first application is...
4
by: Suzette | last post by:
I have an excel file that automatically updates when opened, pulling information from an Access database into into various pivot tables. I created a macro in Access to perform various necessary...
5
by: Salad | last post by:
If I click on the Macros button in the database window there is 1 macro that exists...AutoExec. If I click on the Modules button and enter the VB Editor window there's the menu option Tools. ...
1
by: veasnamuch | last post by:
I have a problem while I create a trigger to my table. My objective is getting any change made to my table and record it in to another table . My have thousands records before I add new trigger to...
20
by: timmg | last post by:
You know, I've had so much fun reading the thread on lookup field's subservience to the Dark One that I thought I'd provoke another, ah, polite discussion on the topic of Macros. I've always...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.