Dirty question

  • Thread starter Thread starter IPIPKIN
  • Start date Start date
I

IPIPKIN

Hi,
I have two unbound fields on form: Date and Time and invisible bound
field that keeps them together for storing in database.
How can I trigger Dirty event when editing these unbound fields
(for example in order to enable-disable Save button) ?
Thanks
 
IPIPKIN said:
Hi,
I have two unbound fields on form: Date and Time and invisible bound
field that keeps them together for storing in database.
How can I trigger Dirty event when editing these unbound fields
(for example in order to enable-disable Save button) ?
Thanks

So I guess you have code in the unbound controls that sets the value of
the invisible bound control, thus dirtying the form programmatically?
If you have code in the form's Dirty event, you'll probably have to call
that code directly; e.g.,

Private Sub txtDate_AfterUpdate()
Me.txtDateTime = Nz(Me.txtDate, 0) + Nz(Me.txtTime, 0)
Call Form_Dirty
End Sub
 
Back
Top