J
John S
I have a form / subform (datasheet boumd to a temporary table), with a save
button, and I need a way of determining if anything has been changed in the
form (to warn users about to exit to save their changes). I hoped the
following code would work in the form unload event of the main form, but it
doesnt:
If Me.Dirty Then
anInt = MsgBox ("Va tu sauvez vos changements", VbYesNo)
End If
I get a 2455 error.
I tried shifting the focus to the main form (a Google search suggested that
focus could be a problem). I tried putting the me!dirty clause in subform
events. Nada.
Is there any way to make use of me.dirty in this kind of form/subform
(datasheet) arrangement? Otherwise, is there any way of determining if there
has been a change in the form and subform (other than some kind of esoteric
recordset matching of the original and current data)?
John S
Aylmer, PQ
button, and I need a way of determining if anything has been changed in the
form (to warn users about to exit to save their changes). I hoped the
following code would work in the form unload event of the main form, but it
doesnt:
If Me.Dirty Then
anInt = MsgBox ("Va tu sauvez vos changements", VbYesNo)
End If
I get a 2455 error.
I tried shifting the focus to the main form (a Google search suggested that
focus could be a problem). I tried putting the me!dirty clause in subform
events. Nada.
Is there any way to make use of me.dirty in this kind of form/subform
(datasheet) arrangement? Otherwise, is there any way of determining if there
has been a change in the form and subform (other than some kind of esoteric
recordset matching of the original and current data)?
John S
Aylmer, PQ