S
Steve Walker
Access 2000 on Win XP. I have a form that I have based on a query from three
tables. Three of the fields are [StyleCharge], [StylistCharge] and
[TotalCharge]. When the query is run both Style and Stylist prices are shown
after they have been selected from two combo boxes.
I am trying to update [TotalCharge]. Can't do it in the query because the
style and stylist are chosen on the form. I need some method of updating the
TotalCharge field.
Created a macro and put it in the beforeupdate event. The macro is a
setvalue to set the value of the TotalCharge field by adding StyleCharge +
StylistCharge together.
The expression is: [Forms]![frmAppointment]![StylistCharge] +
[Forms]![frmAppointment]![StyleCharge]
The item is: [Forms]![frmAppointment]![TotalCharge]
This doesn't seem to be successful. I would have thought that the expresson
would add the two fields together which would then update the TotalCharge
field. Any ideas or help on this would be appreciated. I think I've
misunderstood the expression needed.
Steve
tables. Three of the fields are [StyleCharge], [StylistCharge] and
[TotalCharge]. When the query is run both Style and Stylist prices are shown
after they have been selected from two combo boxes.
I am trying to update [TotalCharge]. Can't do it in the query because the
style and stylist are chosen on the form. I need some method of updating the
TotalCharge field.
Created a macro and put it in the beforeupdate event. The macro is a
setvalue to set the value of the TotalCharge field by adding StyleCharge +
StylistCharge together.
The expression is: [Forms]![frmAppointment]![StylistCharge] +
[Forms]![frmAppointment]![StyleCharge]
The item is: [Forms]![frmAppointment]![TotalCharge]
This doesn't seem to be successful. I would have thought that the expresson
would add the two fields together which would then update the TotalCharge
field. Any ideas or help on this would be appreciated. I think I've
misunderstood the expression needed.
Steve