Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form2.Command1_Click 1

Status
Not open for further replies.

Error7

Programmer
Joined
Jul 5, 2002
Messages
656
Location
GB
I know this question has been asked (and answered) many times before and I have done a keyword search using various parameters but can't find any previous threads on the subject.

Can somebody please tell me the correct syntax for activating a command button on a second form.

Form2.Command1_Click

Please...

Experience is something you don't get until just after you need it.
 
Form2.Command1.Value = True
 
CCLINT, thanks for that. I tried all permutations except the correct one!

I was going [blue]blue[/blue] in the face [bluegreedy]

Experience is something you don't get until just after you need it.
 
Nice one CCLINT...

I usually make the event public and call it explicitly, but I prefer your solution.

Does it produce an error though if the button is disabled?
 
Thanks.
>Does it produce an error though if the button is disabled
It will execute no matter if the form or control are Enabled/Visible or not.

If this is a requirement, then check it's Visible/Enabled property first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top