Disappearing Labels on Command Buttons

J

jerryb123

I have a form with two buttons that both refresh the underlying data and move
to the last record in the inderlying table. The buttons have different names,
and one has a label that says "REFRESH" while the other has a label that says
"SAVE." I have linked each label to its respective button. However, when I
press "SAVE", the "REFRESH" label disappears, and vice versa. The label then
reappears as soon as I mouse over the button, but it is annoying and it looks
bad. I'm sure this is an easy fix; I just haven't found it yet.
 
J

jerryb123

For the most part I used the code that was generated for the button when I
created it in the wizard. Here it is:

Private Sub cmdSaveBillingInput_Click()
On Error GoTo Err_cmdSaveBillingInput_Click

' This code clears out the values in the form and moves to a new record
If Me.Dirty Then
Me.Dirty = False
End If
DoCmd.GoToRecord , , acNewRec

Exit_cmdSaveBillingInput_Click:
Exit Sub

Err_cmdSaveBillingInput_Click:
MsgBox Err.Description
Resume Exit_cmdSaveBillingInput_Click

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