-
I have a form with two flexgrids on it. When either of them is double clicked, I want to bring up one form(the same form is for both grids) and know which was clicked. Is there awat to do this, aside from a control array.
I want something like this
[code]
sub grid1_dblclick ()
frm1.show
end sub
sub grid2_dblclick ()
frm1.show
end sub
frm1_load ()
'determine which grid was clicked and process information
end sub
any ideas?
-
Code:
Private Sub grid1_dblclick ()
Call LoadFrm("grid1")
end sub
Private Sub grid2_dblclick ()
Call LoadFrm("grid2")
end sub
Private Sub LoadFrm(strS As String)
Load frm1
'tell the form that str was what was clicked
Form1.Text1.Text = strS
End Sub
-
Thanks....
I never thought of doing it that way, but I like it.