Modified field not displayed

  • Thread starter Thread starter MichaelHensley
  • Start date Start date
M

MichaelHensley

I've added a button to a form that changes a value in a field. Here's the
code:

Private Sub Punch01_Click()
Me.Visit01 = Date
End Sub

When I click on the button, the record is marked dirty, but the displayed
value for the field doesn't change. If I leave the record and come back to
it, I see that the field was indeed updated.

Do I need to add code to some event for the field display control to
re-display the value when it has been altered? Or is there some form
property I need to change?

Thanks!
 
Is Visit01 the name of the control on the form? I have never seen a
situation where pushing a value into a bound control doesn't display
immediately.
 
I asked:
I've added a button to a form that changes a value in a field. Here's the
code:

Private Sub Punch01_Click()
Me.Visit01 = Date
End Sub

When I click on the button, the record is marked dirty, but the displayed
value for the field doesn't change. If I leave the record and come back to
it, I see that the field was indeed updated.

And Duane Hookom responded the right question:
Is Visit01 the name of the control on the form? I have never seen a
situation where pushing a value into a bound control doesn't display
immediately.

Ah hah! Thanks! Visit01 was the field name. The form control had a different
name (from an earlier attempt to fix something else).

Thanks!
 
Back
Top