|
Question : Using MS Access Startup, I have a Form being opened. On the Form is a command button. I want to automate the click of that button to run VB code created when I built the form. Can/How do I do that?
|
|
Using MS Access, I have a Form being opened on Startup. On the Form is a command button. I want to automate the click of that button to run VB code created when I built the form. Can/How do I do that? OR, is there a better way of running the code without even worrying about the Form? In other words, can the AutoExec be used to run the VB code [ as follows ... Private Sub RunADT_Click() ]? AutoExec can only run Functions, right? Is one possibility creating a Function to run the VB code? Just throwing out ideas here ... and probably embarrassing myself considerably. Thanks in advance. Brad.
|
|
Answer : Using MS Access Startup, I have a Form being opened. On the Form is a command button. I want to automate the click of that button to run VB code created when I built the form. Can/How do I do that?
|
|
Thanks again Sean. I was able to use some of what you told me and figured out what I was doing wrong. I selected On Open, then Code Builder. The VB Code opened up. Once there, I typed Call RunADT_Click(). It now works as I wanted it to. Thanks Brad
|
|
|
|