How can I create a button in Microsoft Access 2010 with event proceure not [Embedded Macro]?

Hello,
When I create a button in Microsoft Access 2010 it creates an [Embedded Macro], but I don't want to work with macros, I want to it to be an event procedure. I work with procedures in code builder not with macros.
Is there a solution for that?

Thanks a lot ...
Ramzi SansourAsked:
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.

PatHartmanCommented:
When you click the builder button, you have three choices - choose code.  You can also set code as the default.  To set code as the default go to file/options/object Designers and check "Always use event procedures.

Keep in mind that the wizards will always generate embedded macros but you can convert them to code by using the icon on the ribbon.
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
PatHartmanCommented:
Explained how to convert embedded macro to code
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.