S
SylvieB
I have two forms. Let’s say Form1 and Form2. I need to write a code that when
the user puts a checkmark on the box in Form1, it displays “record closed†on
form2. The field on form2 is Record. It is a text box. My code does not work.
I am not sure how to call a field from a different form.
Here is the code I have so far:
Private Sub chkClose_AfterUpdate()
If Me!chkClose = True Then
Form_from2.Record = “record closedâ€
Else
Me!txtClose = Null
Me.Dirty = True
End Sub
Thanks in advance for any help.
the user puts a checkmark on the box in Form1, it displays “record closed†on
form2. The field on form2 is Record. It is a text box. My code does not work.
I am not sure how to call a field from a different form.
Here is the code I have so far:
Private Sub chkClose_AfterUpdate()
If Me!chkClose = True Then
Form_from2.Record = “record closedâ€
Else
Me!txtClose = Null
Me.Dirty = True
End Sub
Thanks in advance for any help.