Solved

Access 2010 VBA - How do I turn off macros and turn on VBA

Posted on 2011-03-10
7
551 Views
Last Modified: 2012-05-11
Hi,
See attached.

I am creating some simple forms with buttons to call other forms.

The system is creating macros when I would much prefer if it just created regular VBA.

How can I prevent it from creating macros.


Keystone-Prototype.zip
0
Comment
Question by:Patrick O'Dea
  • 3
  • 2
  • 2
7 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
file > options > object designers > form/report design
check always use event procedures
0
 

Author Comment

by:Patrick O'Dea
Comment Utility
Thanks capricorn1,

I  have already ticked this box.  (I believe that it is ticked in the database I attached).

However, the problem persists??

Any further thoughts??
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
try to compact and repair or close db and open again.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility

  With the new emphasis on macros once again, I don't think you'll find a switch to turn it off.  You can turn off the Wizard, but I don't believe there is anything to make it generate VBA code rather then a macro.

JimD.
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 250 total points
Comment Utility
<However, the problem persists??>
if you are using the wizard to create the button, then you can not turn off the creation of embedded macro.

you can, convert the macro created to vba
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
Comment Utility

 Note that there is a "Covert Form Macro's to VBA" on the ribbion.

  However Microsoft is really trying to get people to move away from the VBA, mostly so that DB's can be published via Sharepoint.

JimD.
0
 

Author Closing Comment

by:Patrick O'Dea
Comment Utility
Thanks all,


I "Saved As" to 2003 and the problem is gone.   Not very satisfactory though.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now