Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

accedd advanced

ResolvedVersion Standard

Robert has attended:
Access Advanced course

Accedd Advanced

I heard that you can convert Macros in Access into VBA code. Do you know how I can do this?

RE: Access Advanced

Hi Robert,

Macros are created using VBA, if you just record a Macro then Access will write the VBA code behind the scenes. You can get to the code in the VBA editor within Access. You will not need to convert anything at all.

Hope this helps
David

RE: Access Advanced

Hi David,

Sorry but there doesn't be a way to 'record' macros in Access. Furthermore, unlike in Excel, Access doesn't show the macros you create in the VBA editor.

Any other ideas?

RE: Access Advanced

Robert,

My mistake. In Access you will have to write the Macro yourself using VBA code. Thus you can just view the macro code in the VBA editor.

Hope this helps
David

RE: Access Advanced

Thanks David,

But I found an easier way of doing this.
If you create an Access macro and then go to File and Save As, and then choose "Module" from the 'As' drop-down list, Access will create the code for you.

Access tip:

Modal forms

If you have created a form / switchboard and dont want people to get away from using the switchboard, you can change the form properites for Modal to On.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.