Button Click doesn't change textbox visible?

S

SRussell

I have a button and it's suposed to change the text for a call "type" is.
When I click the button teh code below fires. Unfortunatly I don't see the
change from Emergency to Reservation in real time. I have to move a record,
and then come back to see the change.

What do I have to add to the code below? That same code will update the
time to Now in another similar button click.

Private Sub cmdCallType_Click()
On Error GoTo Err_cmdCallType_Click


With CodeContextObject
If .CallType = "Emergency" Then
.CallType = "Reservation"
Else
.CallType = "Emergency"
End If
End With

Exit_cmdCallType_Click:
Exit Sub

Err_cmdCallType_Click:
MsgBox Err.Description
Resume Exit_cmdCallType_Click

End Sub


TIA

__Stephen
 
G

Guest

I put:

Me.Recalc

After the event's code to refresh my forms after I click buttons or check
boxes.
 

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

Similar Threads


Top