0

how can i call a 1 command button in another form? for example i have form1 in the form 1 i have listbox, in my listbox i have item Customer, Product and etc if i double click my Customer i want to click my command 1 button in form 2 how can i do that? and also in the product if i click the product i want to click the command3 in form 3 please help thanks

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by ryan311
0

In Form1
Private Sub CustemersList_DblClick()
Form2.Comand1_Click()
End Sub

In Form2
Public Sub Command1_Click()
'Your Code Here
End Sub

If you got it MARKED AS SOLVED

0

well thanks but you gave me wrong answer and thanks for the idea :) dont worry i will mark this thread as solved

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.