Code:
Private Sub numChrgs_AfterUpdate()
intSubscript = selectCustomer.ListIndex
charge = charge + (Me.numChrgs.Value * m_900(intSubscript))
'The record needs to be saved after the price is adjusted, if not then an incorrect price could be calculated.
DoCmd.RunCommand acCmdSaveRecord
End Sub
this is what i have for the AfterUpdate
i need something for the BeforeUpdate so when I enter a number in the numChrgs textbox before saving the record it will update the price in the charge textbox and not erase it
if the record is already saved it will update the price as long as its not 0
if i change it from 0 to 1 i get no change
the price is pulled from another table, the check boxes work fine, i just have a If Then Else statement controlling them, but the textbox is giving me all kinds of problems cause its not going to be -1 or 0, it can be any number