I have an option group on a form labelled Approved (value 1) and Declined (value 2) the values go into a text box “Approved_Declined” where the visible properties are false.
If the user selects Approved option I want to enter current date into “Date_Approved_Declined” & clear ant data from “DeclinedReason”
If the user selects Declined option I want to make the “DeclinedReason” field visible & enter current date in the “Date_Approved_Declined”
I have used the following code on the ‘On Change’ property of “Approved_Declined” field. But nothing works when selecting the option buttons. If I manually change the “Aproved_Declined” (this will not be visible in the final desighn) field my MsgBox Test works but not the current date update. Am I using the wrong property to attach the code to, but if so where should I put it? Thanks
'MsgBox "test"
Date_Approved_Declined = Now()
If Approved_Decline = 2 Then
Me.DeclineReason.Visible = True
Else
Me.DeclineReason.Value = ""
Me.DeclineReason.Visible = False
End If