Jump to content
Sign in to follow this  
CarlosB

reset global field?

Recommended Posts

Hello, I have i doubt, probably a very simple one but i couldn't find any post that helped me. I have a global field called sum_min which is supposed to sum the value (minutes) of a field of all records. I'm using this calculation to do this:

sum_min = sum_min + minutes.

The problem is that whenever i change the value in the minute field, it adds the sum of all the minutes field on the value in the sum_min, so if i have 20 min in the sum_min, and i add 1 minute in the minutes field,the sum_min will now be 41 and not 21. I could fix this by setting sum_min to 0 before the calculation, but i don't know how =/ Can anybody help me? I'd really appreciate it1 Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.