
Signature
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
> In my MS ACCESS design, I have two table. Table "COST" to hold the cost
> of
[quoted text clipped - 18 lines]
>
> Hikaru
Hi Alex,
Many thanks for your quick reply. I had made a query “RATE” to hold all the
field of table “COST”. For the field “HK-COST”, I set the multiply formula on
it within the query “RATE”. I had also linked the two tables in the query.
I used the query “RATE” to make a form for input. I found that the “HK-COST”
field shows the calculated value on the form but when I go to see the content
data of the table “COST”, the “HK-COST” field had not been updated with the
calculated value (actually, there is no data). Are there any thing I had done
wrongly? Please tell me how to use the BeforeUpdate event ?
Please help.
Hikaru
>hi,
>you can make a query, where you join both tables and multiply necessary
[quoted text clipped - 6 lines]
>>
>> Hikaru
Alex Dybenko - 17 Jan 2006 12:26 GMT
Hi,
What if you open this query, and try to enter data there in a query - will
calculated field be updated?
BeforeUpdate - add this event to your form class module, and write there
me.[NewHKCost]=me.RATE * me.Cost
NewHKCost - is a field in same table as cost. so once you have Rate or Cost
updated in a form (in this form only!) - NewHKCost will have a updated
value.

Signature
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
> Hi Alex,
>
[quoted text clipped - 29 lines]
>>>
>>> Hikaru
hikaru - 18 Jan 2006 03:46 GMT
Hi Alex,
Could you send me an example ACCESS file for my case having the
"BeforeUpdate" event ?
My e-mail account : hikaru_sai@yahoo.com
Many thanks.
Hikaru
>Hi,
>What if you open this query, and try to enter data there in a query - will
[quoted text clipped - 13 lines]
>>>>
>>>> Hikaru