?
Solved

How do I make one form press a button on anothe form?

Posted on 2005-02-28
3
Medium Priority
?
125 Views
Last Modified: 2010-05-02
I know that command1_click will press a button on the current form.

What code on Form1 will press a button on Form2?



0
Comment
Question by:rbend
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
vb_elmar earned 80 total points
ID: 13424060
in Form1:
____________________

Private Sub Form_Load()
Form2.makeAclick
End Sub

in Form2:
____________________

Private Sub Form_Click()
End
End Sub

Sub makeAclick()
Form_Click
End Sub
0
 

Author Comment

by:rbend
ID: 13424091
thanks.
0
 
LVL 17

Expert Comment

by:vb_elmar
ID: 13424097
correction:

instead:
Sub makeAclick()
Form_Click
End Sub

use:
Sub makeAclick()
Command1_Click
End Sub
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question