Try to add a module then put a global variable
Example:
Module1
Public AddUpdate As String
End Module
On form1.
Private Sub Button1_Click()
'Assuming this button is an Add button
AddUpdate ="Add"
End Sub
Private Sub Button2_Click()
'Assuming this button is an Update button
AddUpdate ="Update"
End Sub
On form2
Private Sub Form_Load()
Label1.Caption = AddUpdate
End Sub
so with that simple concept Form2 can determine what button was pressed in Form1.
Last edited by c0deFr3aK; May 19th, 2009 at 1:49 am.
Reputation Points: 11
Solved Threads: 10
Junior Poster in Training
Offline 71 posts
since Mar 2009