Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summing items on a form????

Status
Not open for further replies.

pdbowling

Programmer
Mar 28, 2003
267
US
Hi all, I have a table with 42 columns. The key, 40 data values, and a total field. Pretty cluttered I know, but I didn't design it. I made a form with it and I'm trying to get the form to autofill the total field as the data values are entered. Any suggestions on how to do this? I already tried to string all forty together in the expression builder but they wouldn't fit.
Thanks everyone.
P
 
DSum appears to work down a column. I was looking at summing across a row.

Key......Valu1.....Valu2.....Total
xxx.......1.........1.........2
yyy.......1.........2.........3
zzz.......2.........2.........4

My form has a field, currently blank, bound to Total...
Sorry to be a hassle.
PB
 
Try this for your total...

I would use a text box and enter this formula:

=Sum([Valu1]+[Valu2]+[Valu3])

Hope it works

Ray
 
Hey thanks nubster/geaker. I ended up writing it in the code for a command button. I made it so they had to use the command button to go to the next record so the code would always execute. It was just that I had so many items to add together that the buffer for the controls was running out of space. Code has no such problems. I really appreciate your efforts. Thank you.
PB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top