[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2705
  • Last Modified:

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
0
slobber72
Asked:
slobber72
  • 2
1 Solution
 
Jeffrey CoachmanCommented:
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
 
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 CoachmanCommented:
OK, then you can accept your own answer here.
;-)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now