Hello,
I have a drop down menu with four items. Then below that I have a check box and a date field. Currently if you are to click on the checkbox the date field updates with today's date.
However I would like it if a user checks the third option down "Contract Delivered" to then update the checkbox. Check itself which then will also update the date field.
Here is my logic and I'm new to VBA Access, so any help in regards to syntax or logic is greatly appreciated.
The above code is in the AfterUpdate event of my drop down field, I have also placed it under the Click event and no luck.
Here is my code for the check box which works fine:
I have a drop down menu with four items. Then below that I have a check box and a date field. Currently if you are to click on the checkbox the date field updates with today's date.
However I would like it if a user checks the third option down "Contract Delivered" to then update the checkbox. Check itself which then will also update the date field.
Here is my logic and I'm new to VBA Access, so any help in regards to syntax or logic is greatly appreciated.
Code:
Private Sub substatus_AfterUpdate()
If Status = 3 Then
Me.Check198 = -1
End If
End Sub
Here is my code for the check box which works fine:
Code:
Private Sub Check198_AfterUpdate()
On Error GoTo Err_Check198_AfterUpdate
If [Check198] = -1 Then
Me.assignedtoRep = Now()
Me.[SubStatus] = 4
End If
DoCmd.Requery "SubStatus"
DoCmd.Requery "assignedtorep"
Exit_Check198_AfterUpdate:
Exit Sub
Err_Check198_AfterUpdate:
MsgBox Err.Description
Resume Exit_Check198_AfterUpdate
End Sub
Comment