BlueJacket
Registered User.
- Local time
- Today, 17:54
- Joined
- Jan 11, 2017
- Messages
- 90
I'm trying to update a checkbox in a parent form based off a combobox in subform. Does this code make sense? It's giving me a 2465 run-time error: Microsoft Access can't find the field '|1' referred to in your expression. What am I missing?
Thanks in advance.
Code:
Private Sub cboRevenueTypeCode_AfterUpdate()
If Me.cboRevenueTypeCode = 1 Then
[frmAccounting].Form![chkClosed] = True
Else
If Me.cboRevenueTypeCode = 2 Then
[frmAccounting].Form![chkClosed] = True
Else
If Me.cboRevenueTypeCode = 4 Then
[frmAccounting].Form![chkClosed] = True
Else
[frmAccounting].Form![chkClosed] = False
End If
End If
End If
End Sub
Thanks in advance.