I've got a form, on it is a field that I calculate a value for.
If the field is null, this code runs onenter:
After it runs, the form textbox doesn't show the value.Code:Private Sub tbxm_EntityCd_Enter() If IsNull(Me!EntityCd) Then Me!EntityCd = fGetSeqId("tbl_39_Entity", "EntityCd", "sTestTwg", True, True) Me.Repaint End If End Sub
If I press tab, then it shows correctly as it moves to the next textbox.
Why isn't repaint repainting the form for this procedure?
(I don't want to refresh or requery as the record isn't ready to save yet.)
Is there a better event to load a value into for a field on a form?
Thanks