Question : Setting value in table without control

Hello Experts,
I have a form in which i have a text box named txtPaperCost.  This should link to the PaperCost control cource in my table named tblPrintCharges however i was forced to us the Control Source for an IIf expression because of calculations not working correctly.  Is there some code or macro i could run to take the value in txtPaperCost and put it in the tables PaperCost?

Thanks!

Answer : Setting value in table without control

Create another text box bound to PaperCost field in the table tblPrintCharges. Make it hidden. Let's call it txtBoundPaperCost. In the after update event of txtPaperCost, put:
Private Sub txtPaperCost_AfterUpdate ()
txtBoundPaperCost = txtPaperCost
End Sub
Random Solutions  
 
programming4us programming4us