473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Riunning A Macro from VBA

Hi:

I am trying to work my way around a problem (refreshing a form and getting new totals). I
think I have the solution, but I need to run an Approcah Macro from V\BA, and am foxed in
doing it.
The name of he Macro is: confirmedTScommit

I Tried :

Run("confirmedTScommit")

and it didnt like that (couldnt find it).

I tried

RunMacro ("confirmedTScommit")

and it liked that even less!

Can anyone tell me the right syntax to run a macro in Access from VBA?
Regards

John Baker
Nov 12 '05 #1
2 1352
Ladies and Gentleman:

The prior post was messed up in a number of ways, as a result of firing it off without
proper review. I apologize for that, and would like to restate it:

I am trying to work my way around a problem (refreshing a form and getting new totals). I
think I have the solution, but I need to run an Access Macro from VBA, and am foxed in
doing it.

The name of he Macro is: confirmedTScommit

I Tried :

Run("confirmedTScommit")

and it didn't like that (couldn't find it).

I tried

RunMacro ("confirmedTScommit")

and it liked that even less!

Can anyone tell me the right syntax to run a macro in Access from VBA?
Regards

John Baker

John Baker <Ba******@Verizon.net> wrote:
Hi:

I am trying to work my way around a problem (refreshing a form and getting new totals). I
think I have the solution, but I need to run an Approcah Macro from V\BA, and am foxed in
doing it.
The name of he Macro is: confirmedTScommit

I Tried :

Run("confirmedTScommit")

and it didnt like that (couldnt find it).

I tried

RunMacro ("confirmedTScommit")

and it liked that even less!

Can anyone tell me the right syntax to run a macro in Access from VBA?
Regards

John Baker


Nov 12 '05 #2
DoCmd.RunMacro

Mike Storr
www.veraccess.com
"John Baker" <Ba******@Verizon.net> wrote in message
news:l2********************************@4ax.com...
Hi:

I am trying to work my way around a problem (refreshing a form and getting new totals). I think I have the solution, but I need to run an Approcah Macro from V\BA, and am foxed in doing it.
The name of he Macro is: confirmedTScommit

I Tried :

Run("confirmedTScommit")

and it didnt like that (couldnt find it).

I tried

RunMacro ("confirmedTScommit")

and it liked that even less!

Can anyone tell me the right syntax to run a macro in Access from VBA?
Regards

John Baker

Nov 12 '05 #3

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

Similar topics

25
by: Andrew Dalke | last post by:
Here's a proposed Q&A for the FAQ based on a couple recent threads. Appropriate comments appreciated X.Y: Why doesn't Python have macros like in Lisp or Scheme? Before answering that, a...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
2
by: Pete | last post by:
In Access 95/97 I used to be able to create pull down menus (File,Edit ...) from a macro. It seems there used to be some wizard for that. However in Access 2000 it seems you have to build your...
7
by: Newbie_sw2003 | last post by:
Where should I use them? I am giving you my understandings. Please correct me if I am wrong: MACRO: e.g.:#define ref-name 99 The code is substituted by the MACRO ref-name. So no overhead....
3
by: Alexander Ulyanov | last post by:
Hi all. Is it possible to pass the whole blocks of code (possibly including " and ,) as macro parameters? I want to do something like: MACRO(FOO, "Foo", "return "Foobar";", "foo();...
8
by: lasek | last post by:
Hi...in some posts i've read...something about using macro rather then function...but difference ??. Best regards....
6
by: Takeadoe | last post by:
Dear NG, Can someone assist me with writing the little code that is needed to run an update table query each time the database is opened? From what I've been able to glean from this group, the...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
0
by: =?Utf-8?B?TGV0emRvXzF0?= | last post by:
I'd like to create a Macro that will sort some raw data, apprx 20k lines, remove some lines based upon a condition in a certain column. Then copy this data into a new spreadsheet and sort the ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.