Can't edit embedded macro - command button in Access 2010

Hi There,

I have created some command buttons on a form in Access 2010, and when I tried to look at the procedures created by the button wizard, lo and behold, there was none. I have now figured out it has created embedded macros, which for the very simple tasks I'm carrying out is ok.

 But when I click on the ellipsis button to edit the [Event Procedure], it just opens the VBA editor with a blank procedure - very confusing. To change the functionality of the button I have to delete the words [Event Procedure] then create a new embedded macro, or key in some code - or - delete the button and create a new one.

How might I look at the embedded macro so I can edit it ?

Click on the ellipsis here
Get blank vba proecdure

Any help is appreciated.

Best regards,
Craig
slobber72Asked:
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:
It is not clear how you are creating your buttons, ...
...or what your buttons are doing...

But if you are using the .accdb format, and you create your button using the wizard, ...
Then when you open the property box, ...it will say :
    [Embedded Macro]
...Not [Event Procedure]

So it looks to me like you are just dropping buttons on your forms.
When you drop a button on your form, a wizard should start up asking you what you want your button to do...
If you follow all the steps, ...you will have a button with an [Embedded Macro]

If you drop a button on your form and the wizard does not open, then you will have to click the "Control wizards" button.
Then try creating the button again.

JeffCoachman

Give that a try, then let us know
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
slobber72Author Commented:
I was just creating the buttons using the wizard. The event for "on click" it did only say [event procedure] that's why I was expecting to see vba code-but there was none. And I couldn't see / get to any macros. The button was working correctly but I couldn't edit it's actions.
Deleting and recreating has worked. Thanks for helping me out on this one.
Craig
0
Jeffrey CoachmanMIS LiasonCommented:
OK, then you can accept your own answer here.
;-)
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.