Automate Process 
Author Message
 Automate Process

Quote:
>I'm trying to auomate a process usually performed on a switchboard form. I
>can set the focus on the button's but I need to click the button's from a
>module.

You can execute any public module from one form from within another
form. This includes the code for the click event of the button.
Generally you would make a common public sub and call that same sub
from the Click event of the button, or from the outside:

Public Sub DoWhatever
  me.cmdSomeButton.setfocus
  msgbox "I'm doing it..."
end sub

From your switchboard:

docmd.openform "yourform"
forms!yourform.DoWhatever

Quote:
>I need it to be visual as well as automatic.

I don't know what "be visual" means.

-- Jim Ferguson, FMS
    http://www.*-*-*.com/



Sat, 03 Mar 2001 03:00:00 GMT  
 Automate Process
Make sure the button's Click event procedure does not have
"Private" before the Sub.

Then add this as the 3rd line of your code:

        Call Form_Switchboard.MyButton_Click

Quote:

>     DoCmd.OpenForm "Switchboard", acNormal, "", "", , acNormal
>     Forms!Switchboard!Option2.SetFocus

> I'm trying to auomate a process usually performed on a switchboard form. I
> can set the focus on the button's but I need to click the button's from a
> module. Can this be done?
> I need it to be visual as well as automatic.



Sun, 04 Mar 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. * Automating Process

2. can VB automate processes?

3. isolating if/then statements - automate process?

4. Automating the Setup Process

5. Automating Account Creation Process?

6. Automated file name processing...

7. Automate right-click...Properties...Hide process

8. Automating a repetitive process in Excel

9. How to automate multi-programs processing in Win 2K Professional (like Batch for DOS)

10. how to automate an ftp process ?

11. Automate address book import process?

12. Automated the process of generating exe!

 

 
Powered by phpBB® Forum Software