M
M Skabialka
In Access 2007 I have a form with a save button whose forecolor is #666666
If changes are made to data on the form I want to change the color to back
and bold. When they have saved their changes I want it to go back to not
bold and forecolor = #666666.
My code has this to change it when the form is dirty - this works:
cmdSaveChanges.FontBold = True
cmdSaveChanges.ForeColor = 0 'black
But I get compile errors for these trying to set it back:
cmdSaveChanges.ForeColor = #666666 'compile error: Expected:
Expression
cmdSaveChanges.ForeColor = "#666666" 'type mismatch
How do I set it back to forecolor #666666?
If changes are made to data on the form I want to change the color to back
and bold. When they have saved their changes I want it to go back to not
bold and forecolor = #666666.
My code has this to change it when the form is dirty - this works:
cmdSaveChanges.FontBold = True
cmdSaveChanges.ForeColor = 0 'black
But I get compile errors for these trying to set it back:
cmdSaveChanges.ForeColor = #666666 'compile error: Expected:
Expression
cmdSaveChanges.ForeColor = "#666666" 'type mismatch
How do I set it back to forecolor #666666?