Hi
I am using Access 2003, I am trying to perform a calculation and put the result in an unbound text box, If my chkbox(LotPrice) is true I want the calc to be price * qty and if false just price.
I have put the code below in the afterupdate event but I get an error message.
"You must save the field before you execute the gotocontrol action, the gotocontrol method, or the setfocus method"
Text4.SetFocus
If LotPrice = -1 Then
Text4.Text = Price * Qty
Else
Text4.Text = Price
End If
I have the same code in the forms afterupdate event and it works fine.
Any help really appreciated.
Alan
I am using Access 2003, I am trying to perform a calculation and put the result in an unbound text box, If my chkbox(LotPrice) is true I want the calc to be price * qty and if false just price.
I have put the code below in the afterupdate event but I get an error message.
"You must save the field before you execute the gotocontrol action, the gotocontrol method, or the setfocus method"
Text4.SetFocus
If LotPrice = -1 Then
Text4.Text = Price * Qty
Else
Text4.Text = Price
End If
I have the same code in the forms afterupdate event and it works fine.
Any help really appreciated.
Alan