Access 2010 Build Event

I am use to old access where I would create a button
and when I went into build event it went right to the code block
Now it is taking me to this stupid macro stuff and I cant even get to the code box
is there a permanent setting to go directly to the code box
and if not how to I get to the code section like the old days so I can do my own code.
Stephen RoesnerAnalysisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
In the Access options you can select :
"Always use Event Procedures"
Option
However if you are using the Access .accdb format, ...the wizards will no longer create code, ...they will always create Macros.
There is know way (that I have heard of) to change this, ...it is simply the way Access .accdbs are set up to work.
You will have to write your own code manually
0
Jeffrey CoachmanMIS LiasonCommented:
In other words, Access .accdb format will not create Code if you use the wizards, (...but .mdb format database will.)

You can still select :
"Always use Event Procedures"
form the Access ptions.

So you will create your button (or any other contrl) manually, ...then click on the event, ...then you will be taken immediately to the VBA editor instead of Access asking you:
Code Builder
Macro Builder
Expression Builder

JeffCoachman
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Stephen RoesnerAnalysisAuthor Commented:
thanks i have the always use button clicked but was just frustrating to constantly copy and pasting old buttons to get to the build event - Access really bites sometimes.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Stephen RoesnerAnalysisAuthor Commented:
Thanks for your quick answer
0
Jeffrey CoachmanMIS LiasonCommented:
"Access really bites sometimes. "
Not really, ...
There is a good reason for this:
1. If you have been using Access for a while now, ...you should have most of the common code memorized by now.  So doing something like:
DoCmd.GoToRecord , , acFirst
...or:
DoCmd.OpenReport "YourReport", acPreview
...should be no big deal
2. ...or at the very least, you should have a textfile with all the basic code pasted in, ...then you can simply change the (object) names.

The reason MS made macros the default is so that "Non" developers could create simple automation without having the know VBA.

You will get used to it.
;-)

JeffCoachman
0
Jeffrey CoachmanMIS LiasonCommented:
;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.