By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,251 Members | 2,656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,251 IT Pros & Developers. It's quick & easy.

Run Command Button on open

P: n/a
I have a command button on my subform that I would like to run when the
subform loads.

Is there a way to run the command button that is in the subform
automatically.

Thanks

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The first line in your button's code looks something like:

Private MyButton_Click()

Change Private to Public. Put the following code in the subform's Open
event:
Call MyButton_Click

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<dm******@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I have a command button on my subform that I would like to run when the
subform loads.

Is there a way to run the command button that is in the subform
automatically.

Thanks

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.