A
Alexcamp via AccessMonster.com
I just don't understand what's not working.
Given the following:
Module "publicVariables":
Public NewContract As Boolean
Command button onclick event on form "frmReception":
Private Sub cmdModifContract_Click()
NewContract = False
End Sub
Command Button onclick event on another form:
Private Sub Commande59_Click()
message = MsgBox(NewContract, vbOKOnly)
End Sub
I thought this would be simple enough to work. Declare a public variable,
assign a value to it in a form, extract the value from it from another form.
It's not working !
I am getting a error like Function or variable required or something
("Fonction ou variable attendue" in french..).
Does anyone know what the problem might be ? Is it because I am assigning a
value from a Private sub?
Any hint will be appreciated.
Thank a lot
Given the following:
Module "publicVariables":
Public NewContract As Boolean
Command button onclick event on form "frmReception":
Private Sub cmdModifContract_Click()
NewContract = False
End Sub
Command Button onclick event on another form:
Private Sub Commande59_Click()
message = MsgBox(NewContract, vbOKOnly)
End Sub
I thought this would be simple enough to work. Declare a public variable,
assign a value to it in a form, extract the value from it from another form.
It's not working !
I am getting a error like Function or variable required or something
("Fonction ou variable attendue" in french..).
Does anyone know what the problem might be ? Is it because I am assigning a
value from a Private sub?
Any hint will be appreciated.
Thank a lot