auto command button (1 Viewer)

kitty77

Registered User.
Local time
Today, 12:43
Joined
May 27, 2019
Messages
712
How would I after update in a field press a command button with vba?

Basically, after the field is updated, I manually have to click the command button. Would like it to happen automatically.

Thanks...
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:43
Joined
Oct 29, 2018
Messages
21,467
Hi. You could just "call" it. For example:


Call ButtonName_Click()


Hope it helps...
 

kitty77

Registered User.
Local time
Today, 12:43
Joined
May 27, 2019
Messages
712
Will give that a try. BTW, your website is VERY helpful. Lots of good stuff!
 

Mark_

Longboard on the internet
Local time
Today, 09:43
Joined
Sep 12, 2017
Messages
2,111
For myself, if I have code that will be called from more than one place, I put it in its own SUB. I then reference that SUB any place I need to. This helps avoid the "Well, this button presses that button, which pushes those buttons" issues and helps you keep track of where you have code.
 

kitty77

Registered User.
Local time
Today, 12:43
Joined
May 27, 2019
Messages
712
Where can I learn about SUB's, examples, etc. I have not used them yet.

Thanks...
 

Users who are viewing this thread

Top Bottom