Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Access 2010: Output VBA code using control buttons

McLiguori (TechnicalUser) (OP)
19 Jul 11 6:17
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.

McLigs
chunter33 (Programmer)
19 Jul 11 9:02
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...
McLiguori (TechnicalUser) (OP)
20 Jul 11 4:26
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.

Thanks
McLigs

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