I could use some code that would allow me to control the Font weight, Fore and Back Colors in forms and reports.
Logically one would expct this to be straightforward :-
'If Me.Mood = "Frustrated" then
Me.Face.Fore_Color = (color code for White)
Me.Face.Back_Color = (color code for Red)
Me.Face.Font_Weight = (Code for "Bold"
End If'
All of these elements are in the Properties dialog box as constants but is there any way of bringing them into code so that they can change with certain criteria?
The drop-down box in the code window allows nearly everything, .Visible etc but not these so of it is possible at all there should be another way.
Also The Back Color of raised and sunken objects defaults to grey and cannot be changed. Command Buttons are always raised and can't be set to Flat. So it seems that if you want a red button, you can have it as long as you make it grey!
Has anyone any ideas?
HenriM
Logically one would expct this to be straightforward :-
'If Me.Mood = "Frustrated" then
Me.Face.Fore_Color = (color code for White)
Me.Face.Back_Color = (color code for Red)
Me.Face.Font_Weight = (Code for "Bold"
End If'
All of these elements are in the Properties dialog box as constants but is there any way of bringing them into code so that they can change with certain criteria?
The drop-down box in the code window allows nearly everything, .Visible etc but not these so of it is possible at all there should be another way.
Also The Back Color of raised and sunken objects defaults to grey and cannot be changed. Command Buttons are always raised and can't be set to Flat. So it seems that if you want a red button, you can have it as long as you make it grey!
Has anyone any ideas?
HenriM