E
Eddie
(novice)
Using a label to show a text message for the value of an option group. The
values renge from 1-4. Each value has its own message. When I open a new
record the label does not refresh to default value. (option block does)
Private Sub Optionblock_AfterUpdate()
Select Case Me![Optionblock]
Case Is = 1
Me![OptStatus].Caption = "Status1"
Me![OptStatus].FontSize = 28
Case Is = 2
Me![OptStatus].Caption = "Status2"
Me![OptStatus].FontSize = 28
Case Is = 3
Me![OptStatus].Caption = "Status3"
Me![OptStatus].FontSize = 28
Case Is = 4
Me![OptStatus].Caption = "Status4"
Me![OptStatus].FontSize = 18
End Select
Select Case Me![Optionblock]
Case Is = 1
Me![My_Label].].Caption = "Message1"
Me![My_Label].].FontSize = 18
Case Is = 2
Me![My_Label].].Caption = "message2"
Me![My_Label].].FontSize = 18
Case Is = 3
Me![My_Label].Caption = "Message3"
Me![My_Label].].FontSize = 18
Case Is = 4
Me![My_Label].].Caption = "Message4"
Me![My_Label].FontSize = 18
End Select
Refresh
End Sub
Any suggestion?
Using a label to show a text message for the value of an option group. The
values renge from 1-4. Each value has its own message. When I open a new
record the label does not refresh to default value. (option block does)
Private Sub Optionblock_AfterUpdate()
Select Case Me![Optionblock]
Case Is = 1
Me![OptStatus].Caption = "Status1"
Me![OptStatus].FontSize = 28
Case Is = 2
Me![OptStatus].Caption = "Status2"
Me![OptStatus].FontSize = 28
Case Is = 3
Me![OptStatus].Caption = "Status3"
Me![OptStatus].FontSize = 28
Case Is = 4
Me![OptStatus].Caption = "Status4"
Me![OptStatus].FontSize = 18
End Select
Select Case Me![Optionblock]
Case Is = 1
Me![My_Label].].Caption = "Message1"
Me![My_Label].].FontSize = 18
Case Is = 2
Me![My_Label].].Caption = "message2"
Me![My_Label].].FontSize = 18
Case Is = 3
Me![My_Label].Caption = "Message3"
Me![My_Label].].FontSize = 18
Case Is = 4
Me![My_Label].].Caption = "Message4"
Me![My_Label].FontSize = 18
End Select
Refresh
End Sub
Any suggestion?