OnClick event attached to LABEL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Are there any gotchas involved in doing this? Some comments in the code seem
to imply that the last modified field wont get updated since a label cannot
get the focus. This OnClick event does do a save of the record.

Thanks.
 
Are there any gotchas involved in doing this? Some comments in the code seem
to imply that the last modified field wont get updated since a label cannot
get the focus. This OnClick event does do a save of the record.

Thanks.

I think its not the best way to save a record by clicking on label.
You could use OnClick on label to re-sort data in form. If you are
trying to control new record you need to consider BeforeUpdate event
of form and use:

If Me.Dirty Then
'Save record
Else
Me.Undo
End If

Regards,
Branislav Mihaljev
 
Back
Top