can't set value to 0

amna77

Active Member
Joined
May 9, 2002
Messages
251
hi I have one field on my form, which just calculte the total, like Total=sum(([Damage])+([Burn])+([Paint])) . now when i click on add new record, all forms clears up, but this total field does not. in there value stays the same. any help, how to do clear that.
i try to put codes on the add new button.
like Me.Total.Value = 0, but keep me error message that can't assiagn a value to this object.
Please help. thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi amna77,

Try NOT using SUM function.

=[Damage]+[Burn]+[Paint]

I hope it helps.
Suat
 
Upvote 0
Thank you very much, you saved my life, its working fine now, I tried so many things, but could not get 0 in the total field. Thanks smozgur, its working now becasue of you.
 
Upvote 0

Forum statistics

Threads
1,221,838
Messages
6,162,286
Members
451,759
Latest member
damav78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top