Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Access 2010: Output VBA code using control buttons

Access 2010: Output VBA code using control buttons

Access 2010: Output VBA code using control buttons

When I use a control button wizard to create an action button, e.g. Add New Record, Access 2010 outputs an embedded macro which I later have to convert into VBA code.

Is there a setting I can use to have the control button wizards output code instead of embedded macros? Can you please tell me where to find this setting.

Thanks for your help as always.


RE: Access 2010: Output VBA code using control buttons

I've never used Access 2010, but in 2007 when you inser a button and the wizard comes up you can select "Form Operations" and it will generate code to perform simple tasks such as opening and closing forms. Is there an option like this when the Access 2010 wizard is displayed? I imagine that there would be...

RE: Access 2010: Output VBA code using control buttons

Thanks Chunter33,

In 2010 when you insert a button and the wizard comes up, and you choose any operation, i.e.  Record Operations, open, add new, delete, etc., or any other thing and you let the wizard do its thing, it generates an embedded macro.  In 2003 and (I believe 2007) it would generate code, but 2010 generates an embedded macro.  When you're finished, there is a ribbon option to convert macros to code.  But, I would rather just have the button wizard generate the code directly.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close