I am using the following and is working perfect
Private Sub NEXPPRC_AfterUpdate()
Me.[Purchase Description] = Me.NEXPPRC.Column(0)
Me.[Purchase Price] = Me.NEXPPRC.Column(1)
Me.[Purchase Units] = Me.NEXPPRC.Column(2)
Me.[Purchase Sales Tax] = Me.NEXPPRC.Column(3)
Me.[aasc] = Me.NEXPPRC.Column(4)
Me.[agentc] = Me.NEXPPRC.Column(5)
Me.[aasnetc] = Me.NEXPPRC.Column(6)
Me.Requery
Me.Refresh
End Sub
The above is for combo box, Now I want to use similar code to store calculated text in a field to the table "Purchases" but for the text box
Name of the text box:
Atcom
calculation Value:
AASTamt: ([aasc]*[Purchase Qty])
I tried but this is not working on the text box Atcom
Private Sub Atcom_AfterUpdate()
Me.[Atcom] = Me.([aasc]*[Purchase Qty]).Column(0)
Me.Requery
Me.Refresh
End Sub
Please Help Me fix the code