|
-
Mar 18th, 2010, 08:28 AM
#1
Thread Starter
Junior Member
macro
Does anyone know how to click a button in a form using a macro, i want the macro to run the filter button I've set up but cant find the section in the macro that would allow me to do this?
-
Mar 18th, 2010, 11:47 AM
#2
Re: macro
Take the code in the button's click event and make it into a Sub routine and have the macro run the Sub.
-
Mar 18th, 2010, 12:25 PM
#3
Lively Member
Re: macro
when viewing the form in edit mode, double click on the command button. you should get where you can insert code. the subroutine should be title as such.
Code:
Private Sub CommandButton1_Click()
if you don't see the click then you did it wrong.
if you are then trying to use another button in the same form to run the click event, then just type it out as
Code:
Call CommandButton1_Click()
Last edited by tarius222000; Mar 18th, 2010 at 12:29 PM.
Reason: more info
-
Mar 23rd, 2010, 04:30 AM
#4
Thread Starter
Junior Member
Re: macro
thats brilliant thanks again for your help guys, thumbs up to your eclectic knowledge on a database front!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|