text box summing up other text box but going into table field

  • Thread starter ryan.fitzpatrick3
  • Start date
R

ryan.fitzpatrick3

I have a text box in a form that is linked to a table field. I want
this text box to sum up 3 other text boxes, how do I do this, will it
save that result in the table? Thanks

ryan
 
M

Marshall Barton

I have a text box in a form that is linked to a table field. I want
this text box to sum up 3 other text boxes, how do I do this, will it
save that result in the table? Thanks


=textboxa + textboxb + textbox3

And no, that will not and should not save the total to a
table. Saving a value that can be calculated from other
values in the record might be an ok thing to do in a
spreadsheet, but is serious No-No in a database.
 
R

ryan.fitzpatrick3

Thanks Marsh, so in the table just add the 3 fields together in a new
field right?
 
M

Marshall Barton

No. You can not do calculation in a table field. Even if
you could, it would be a really bad idea. Generally it is
way more efficient and undoubtedly more reliable to
recalculate than to store the result.

The "right" way is to use a query and do the calculation in
a query field OR as I suggested you do with a text box
expression.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top