Good afternoon folks. I got the label of the SubForm to change to a different ForeColor when I go into a Subform from my MainForm by using this code:
Me.Parent.[PartNumber(s)_ Label].ForeColor = 33023
There I enter several PartNumbers then I would like to exit the SubForm and have the SubForm change back to the original ForeColor. I can't get the ForeColor of the Label to change back to the original ForeColor. I have tried the following code in the LostFocus, OnExit and the Form's Lost Focus events, but I only get the debugger again. Here is the code:
Me.[PartNumber(s)_ Label].ForeColor = 16764057
and I have also tried:
Me.Parent.[PartNumber(s)_ Label].ForeColor = 16764057
Any suggestions? Thank you in advance for any assistance rendered.
Me.Parent.[PartNumber(s)_ Label].ForeColor = 33023
There I enter several PartNumbers then I would like to exit the SubForm and have the SubForm change back to the original ForeColor. I can't get the ForeColor of the Label to change back to the original ForeColor. I have tried the following code in the LostFocus, OnExit and the Form's Lost Focus events, but I only get the debugger again. Here is the code:
Me.[PartNumber(s)_ Label].ForeColor = 16764057
and I have also tried:
Me.Parent.[PartNumber(s)_ Label].ForeColor = 16764057
Any suggestions? Thank you in advance for any assistance rendered.