I need to change the background colour of the spouse_forename field according to which radio button is selected. I thought I should be using the event proceedure after update in the group, but I have tried and failed to make this work. The following code is producing run time error 2427
Private Sub Frame349_AfterUpdate()
If Me.Option352.Value = 1 Then
Spouse_Forename.BackColor = vbRed
ElseIf Me.Option354.Value = 2 Then
Spouse_Forename.BackColor = vbWhite
End If
End Sub
Have also tried:
Private Sub Frame349_AfterUpdate()
If Me.Option352.Value = 1 Then
Me.Spouse_Forename.BackColor = vbRed
ElseIf Me.Option354.Value = 2 Then
Me.Spouse_Forename.BackColor = vbWhite
End If
End Sub
Not very technical, only have a very basic understanding, so any help would be appreciated.
Private Sub Frame349_AfterUpdate()
If Me.Option352.Value = 1 Then
Spouse_Forename.BackColor = vbRed
ElseIf Me.Option354.Value = 2 Then
Spouse_Forename.BackColor = vbWhite
End If
End Sub
Have also tried:
Private Sub Frame349_AfterUpdate()
If Me.Option352.Value = 1 Then
Me.Spouse_Forename.BackColor = vbRed
ElseIf Me.Option354.Value = 2 Then
Me.Spouse_Forename.BackColor = vbWhite
End If
End Sub
Not very technical, only have a very basic understanding, so any help would be appreciated.