Solved

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

Posted on 2011-03-10
7
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35099651
file > options > object designers > form/report design
check always use event procedures
0
 

Author Comment

by:Patrick O'Dea
ID: 35099756
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35099767
try to compact and repair or close db and open again.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 58
ID: 35100078

  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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 35100088
<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 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 35100116

 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
ID: 35100234
Thanks all,


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

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

635 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