473,382 Members | 1,202 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,382 software developers and data experts.

What are macros in A2003?

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. Clicking on that there's the menu pad Macros...

If I click on that pad, a window pops up with the caption "Macros".

Inside is a list of "macros". I click on Edit and in a cursory review
see that the majority are routines that start with the word Sub. Ex:
Sub Test()

However, there are some that start with the word Public. Ex:
Public Test()

Why does Access 2003 consider the routines in the list "macros"? If
they all began with the word "Sub" then it would make sense but since
there are some with "Public" I lost track of the commonality that may
make Access assume they are macros.

Can you clarify this for me?
Quixote's Windmills
http://www.youtube.com/watch?v=Bc6iOt-LZic


Nov 2 '07 #1
5 1520
On Fri, 02 Nov 2007 14:33:39 -0700, Salad <oi*@vinegar.comwrote:

Public is a scope modifier that is immaterial to your inquiry.
-Tom.

>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. Clicking on that there's the menu pad Macros...

If I click on that pad, a window pops up with the caption "Macros".

Inside is a list of "macros". I click on Edit and in a cursory review
see that the majority are routines that start with the word Sub. Ex:
Sub Test()

However, there are some that start with the word Public. Ex:
Public Test()

Why does Access 2003 consider the routines in the list "macros"? If
they all began with the word "Sub" then it would make sense but since
there are some with "Public" I lost track of the commonality that may
make Access assume they are macros.

Can you clarify this for me?
Quixote's Windmills
http://www.youtube.com/watch?v=Bc6iOt-LZic

Nov 3 '07 #2
Tom van Stiphout wrote:
On Fri, 02 Nov 2007 14:33:39 -0700, Salad <oi*@vinegar.comwrote:

Public is a scope modifier that is immaterial to your inquiry.
-Tom.
I don't understand why Access, in that list, attributes the subroutines
as macros. Since they aren't listed as macros in the database window it
seemed odd to see them in a list when I open up the VB Editor window.
Maybe macros mean one thing in the database and another in VB.

>
>>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. Clicking on that there's the menu pad Macros...

If I click on that pad, a window pops up with the caption "Macros".

Inside is a list of "macros". I click on Edit and in a cursory review
see that the majority are routines that start with the word Sub. Ex:
Sub Test()

However, there are some that start with the word Public. Ex:
Public Test()

Why does Access 2003 consider the routines in the list "macros"? If
they all began with the word "Sub" then it would make sense but since
there are some with "Public" I lost track of the commonality that may
make Access assume they are macros.

Can you clarify this for me?
Quixote's Windmills
http://www.youtube.com/watch?v=Bc6iOt-LZic

Nov 3 '07 #3
On Sat, 03 Nov 2007 07:38:31 -0700, Salad <oi*@vinegar.comwrote:

I agree it is inconsistent.
-Tom.

>Tom van Stiphout wrote:
>On Fri, 02 Nov 2007 14:33:39 -0700, Salad <oi*@vinegar.comwrote:

Public is a scope modifier that is immaterial to your inquiry.
-Tom.

I don't understand why Access, in that list, attributes the subroutines
as macros. Since they aren't listed as macros in the database window it
seemed odd to see them in a list when I open up the VB Editor window.
Maybe macros mean one thing in the database and another in VB.

>>
>>>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. Clicking on that there's the menu pad Macros...

If I click on that pad, a window pops up with the caption "Macros".

Inside is a list of "macros". I click on Edit and in a cursory review
see that the majority are routines that start with the word Sub. Ex:
Sub Test()

However, there are some that start with the word Public. Ex:
Public Test()

Why does Access 2003 consider the routines in the list "macros"? If
they all began with the word "Sub" then it would make sense but since
there are some with "Public" I lost track of the commonality that may
make Access assume they are macros.

Can you clarify this for me?
Quixote's Windmills
http://www.youtube.com/watch?v=Bc6iOt-LZic

Nov 3 '07 #4
"Salad" <oi*@vinegar.comwrote
... (in) the VB Editor window there's the menu option
Tools. Clicking on that there's the menu pad Macros...

If I click on that pad, a window pops up with the caption
"Macros".
Two very-knowledgeable Access MVPs, A. D. Tejpal and Tom Wickerath, have
looked at this in depth. It appears that the window/dialog box you see is
the same one that appears when you press Alt + F8 in Excel, and my guess is
that Microsoft just didn't think it worthwhile to code an exception in the
common IDE for Access... in Word and Excel, VBA was intended to replace the
product-specific macros; in Access, VBA and macros have more-or-less-happily
co-existed side by side all along.

There are a number of combinations and permutations of procedure properties,
and the only procedures that show up in the macro box are (1) Subs (which do
not return a value as Functions can, but not necessarily do), (2) typecast
as Public or not typecast which defaults to Public, (3) which do not accept
parameters.

My thanks to A. D. and Tom for sharing their knowledge on this issue -- they
had both certainly investigated it to a much greater depth than I had.

And, I will add my personal comment: the Tools | Macro dialog box / window
in Access does not appear to me to be useful. I'll continue to ignore it
unless someone is able to point out to me how it enables me to do something
I can't now do, or how it enables me to do something easier.

Larry Linson
Microsoft Access MVP
Nov 3 '07 #5
Larry Linson wrote:
"Salad" <oi*@vinegar.comwrote
... (in) the VB Editor window there's the menu option
Tools. Clicking on that there's the menu pad Macros...
>
If I click on that pad, a window pops up with the caption
"Macros".

Two very-knowledgeable Access MVPs, A. D. Tejpal and Tom Wickerath, have
looked at this in depth. It appears that the window/dialog box you see is
the same one that appears when you press Alt + F8 in Excel, and my guess is
that Microsoft just didn't think it worthwhile to code an exception in the
common IDE for Access... in Word and Excel, VBA was intended to replace the
product-specific macros; in Access, VBA and macros have more-or-less-happily
co-existed side by side all along.

There are a number of combinations and permutations of procedure properties,
and the only procedures that show up in the macro box are (1) Subs (which do
not return a value as Functions can, but not necessarily do), (2) typecast
as Public or not typecast which defaults to Public, (3) which do not accept
parameters.

My thanks to A. D. and Tom for sharing their knowledge on this issue -- they
had both certainly investigated it to a much greater depth than I had.

And, I will add my personal comment: the Tools | Macro dialog box / window
in Access does not appear to me to be useful. I'll continue to ignore it
unless someone is able to point out to me how it enables me to do something
I can't now do, or how it enables me to do something easier.

Larry Linson
Microsoft Access MVP

Thanks for satisfying my curiousity.
Nov 3 '07 #6

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

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
4
by: Jozef | last post by:
Hello, I have an application that I have been deploying with the Office 2002 / XP Developers Edition Package and Deployment wizard. The package that it creates is 180 MB in size. I would like...
4
by: Dave G | last post by:
I have a medium sized application - data is in back end on a NT4 file server, front end on about 15 workstations. System was Access 97 on W2000 workstations and worked fine. Over Xmas upgraded...
0
by: Willem | last post by:
For those after me converting A97 into A2003 and running into the same problems.... Given recordset with fields: ExcelWorkSheetName, ExcelRangeName The following With ... End With runs in A97...
7
by: Salad | last post by:
I am converting an application from A97 to A2003. I have 2 tables created by another application as a Foxpro.dbf. The table has no index. The connect string in A97 is FoxPro...
2
by: Earl Anderson | last post by:
I received an installation program to load an application on my home computer (WinXP w/ OfficeProXP). The app was originally built in AccessXP, however is now run on A2003, since the company...
0
by: terry | last post by:
Has anyone had any experience with concurrent (multi-user) use of an A2000 front end and an A2003 front end on the same linked set of tables? The reason I'm asking is that we've got a number of...
1
by: Fred Zuckerman | last post by:
I have a database on a shared drive. It has user level security (ie: mdw file). It was created in A2000 and works fine when opened on workstations with A2000 installed. Some workstations have...
4
by: Salad | last post by:
I have A2003 split; FE on the C drive, BE on the network. There are some other people in the system. The FE app is in A2003, the backend in A97. I have an opening form; MainMenu that opens. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.