Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Converting Macros to VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed Hawley - 23 Jul 2007 01:12 GMT
Is there a good way to convert macros to VB when you do not remember how to
program in VB. I am continually running into problems with the macros,
because of security issues, with the systems on which the database is run. I
would like to change them and eliminate the problem. Any suggestions would
help.

Thanks!
Ed
Allen Browne - 23 Jul 2007 02:27 GMT
Access can convert macros to VBA code for you.

With a form open in design view, go to Tools | Macors.
Or select the macro in the Database window, and go to File | Save As.

Look under help for "convert macors" for more info.

The converted macro does have error handling, so it's better than the macro,
but it's still pretty woeful compared with well-designed code.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Is there a good way to convert macros to VB when you do not remember how
> to program in VB. I am continually running into problems with the macros,
[quoted text clipped - 4 lines]
> Thanks!
> Ed
Ed Hawley - 23 Jul 2007 03:52 GMT
Thanks Allen,

I will give it a try.

Ed
> Access can convert macros to VBA code for you.
>
[quoted text clipped - 14 lines]
>> Thanks!
>> Ed
Larry Daugherty - 23 Jul 2007 02:29 GMT
You can't get there from here....

I believe that Access provides a converter that moves you along the
way.  I haven't written any Access Macros since it became available so
your mileage may vary...

The warnings you get really have to do with VBA code as much as any
Access Macros.  In all other platforms, VBA code is referenced as
"macro".

A piece of trivia:  The original "macro" implementation was from
Digital Equipment Corporation (DEC) in its PDP-11,  and up, assembler
languages.  The software engineer could create the low level referents
once, creating incredibly deep nested macros, and refer to them many
times in the source code with a single line each time.  The actual
assembler (compiler) then inserted the entire source code into the
object code each time it was called.  A source file of just a few
pages might generate a listing file several inches deep.  I believe
that every programming language that has claimed to be "macro" ever
since then is trying to claim similar power and expandability.  None
has come even remotely close in exactly the same way.

HTH
Signature

-Larry-
--

> Is there a good way to convert macros to VB when you do not remember how to
> program in VB. I am continually running into problems with the macros,
[quoted text clipped - 4 lines]
> Thanks!
> Ed
Ed Hawley - 23 Jul 2007 03:53 GMT
Thanks Larry,

Interesting history of the Macro. Makes it seem that even if I do the
conversions, I may still get the errors from VBA

Thanks!
Ed
> You can't get there from here....
>
[quoted text clipped - 31 lines]
>> Thanks!
>> Ed
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.