Helo Everyone,
I need a little direction. I have an unbound field on a form where the text is formatted as white. I want to have the field switch to black when F10 is pressed. I need that event to happen from anywhere in the form. So I thought I could put the following code on the KeyDown event for the form:
Select Case KeyCode
Case vbKeyF10
RecExpID.ForeColor = 0
End Select
It doesn't appear to work. If I put the same code on the KeyDown event for any of the other fields within the form it works.
I have not worked with form events all that much.
Any suggestions?
Thanks in advance
Cindy
I need a little direction. I have an unbound field on a form where the text is formatted as white. I want to have the field switch to black when F10 is pressed. I need that event to happen from anywhere in the form. So I thought I could put the following code on the KeyDown event for the form:
Select Case KeyCode
Case vbKeyF10
RecExpID.ForeColor = 0
End Select
It doesn't appear to work. If I put the same code on the KeyDown event for any of the other fields within the form it works.
I have not worked with form events all that much.
Any suggestions?
Thanks in advance
Cindy