Dirty question

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
 
D

Dirk Goldgar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top