Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2010: Output VBA code using control buttons

Status
Not open for further replies.

McLiguori

Technical User
Mar 27, 2003
90
IT
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
 
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...
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top