|
-
Feb 27th, 2007, 08:10 AM
#1
Thread Starter
New Member
[RESOLVED] calling a button from another button
Hi all
How do I "click" one button on a form by clicking a different one?
Thanks
Josh
-
Feb 27th, 2007, 08:13 AM
#2
Re: calling a button from another button
Try this!
Code:
Private Sub Command1_Click()
Command2_Click
End Sub
Private Sub Command2_Click()
MsgBox "test"
End Sub
-
Feb 27th, 2007, 08:14 AM
#3
Re: calling a button from another button
Different forms....
vb Code:
Private Sub Command1_Click()
Form1.Command2_Click
End Sub
'In your other form
Sub Command2_Click()
MsgBox "something!"
End Sub
-
Feb 27th, 2007, 08:15 AM
#4
Re: calling a button from another button
I would use
vb Code:
Form1.Command1.Value = True
-
Feb 27th, 2007, 08:18 AM
#5
Thread Starter
New Member
Re: calling a button from another button
Thanks all I got it working using value = true
I tried the others but got a Data Method not found error
thanks again
Josh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|