G
Gabby Girl
Is there some sort of code where when after updating a certain field on one
form it will automatically update a checkbox to true on another form?
Right now I have a Purchase Order form (frmPurchaseOrders) that has a
combobox named "cboChargedTo". What I want it do is once I update the info
in "cboChargedTo" (only if the user chooses G/L Code 00-1143) I want a
checkbox (called Inv2006) on another form "frmPartsDetail" to automatically
be True. I know I need an Event Procedure in the AfterUpdate property of
"cboChargedTo" but so far have I've not been able to get the correct coding
to make this work properly.
This is what I have right now:
Private Sub cboChargedTo_AfterUpdate()
Select Case Me.cboChargedTo
Case Is = "00-1143"
Me!Forms![frmPartsDetail].[Inv2006] = True
End Select
End Sub
Can anyone tell me what it is that I've done wrong here?
Any help would be greatly appreciated.
Thanks Kindly
form it will automatically update a checkbox to true on another form?
Right now I have a Purchase Order form (frmPurchaseOrders) that has a
combobox named "cboChargedTo". What I want it do is once I update the info
in "cboChargedTo" (only if the user chooses G/L Code 00-1143) I want a
checkbox (called Inv2006) on another form "frmPartsDetail" to automatically
be True. I know I need an Event Procedure in the AfterUpdate property of
"cboChargedTo" but so far have I've not been able to get the correct coding
to make this work properly.
This is what I have right now:
Private Sub cboChargedTo_AfterUpdate()
Select Case Me.cboChargedTo
Case Is = "00-1143"
Me!Forms![frmPartsDetail].[Inv2006] = True
End Select
End Sub
Can anyone tell me what it is that I've done wrong here?
Any help would be greatly appreciated.
Thanks Kindly