I have a list field with Major, Minor and Priority in it. When Major is selected in the Alarm_type field I want a warning to show. Be it either the word Major to be in Red Bold or the Background in Red and/or a message shows warning that it is a Major Alarm.
A friend came up with a way to do it in Access 2000 using both background color and a picture of a button that is invisible unless Major is selected, but it doesn't work in Access 97. When he uses Event Procedure he goes into Visual Basic. When I use Event Procedure in Access 97 it takes me to Form Alarms: Class Module.
His formula goes like this:
Option compare Database
Private Sub Alarm_type_AfterUpdate ()
Call Form_Current
End Sub
Private Sub Form_Current()
Image1.Visible = True
[Alarm_type].BackColor = 16777215
If [Alarm_type] = "Major" Then
Image1.Picture = "c:\My documents\Major.jpg"
[Alarm_type].Backcolor = 255
Else
Image1.Visible = False
I can't get this to work in Access 97. Hope someone can help me with this.
s_wellman@mailcity.com
A friend came up with a way to do it in Access 2000 using both background color and a picture of a button that is invisible unless Major is selected, but it doesn't work in Access 97. When he uses Event Procedure he goes into Visual Basic. When I use Event Procedure in Access 97 it takes me to Form Alarms: Class Module.
His formula goes like this:
Option compare Database
Private Sub Alarm_type_AfterUpdate ()
Call Form_Current
End Sub
Private Sub Form_Current()
Image1.Visible = True
[Alarm_type].BackColor = 16777215
If [Alarm_type] = "Major" Then
Image1.Picture = "c:\My documents\Major.jpg"
[Alarm_type].Backcolor = 255
Else
Image1.Visible = False
I can't get this to work in Access 97. Hope someone can help me with this.
s_wellman@mailcity.com