How do I create a button on my form that adds values of fields the

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I hope someone can help me. If my questions is answered in another
post I would appreciate some direction.

I have an access 2003 form that has some currency fieds. I would like a
command button to add up the fields and populate the result in another field
on the form. This should be updated once the button is pressed.

Any ideas? Thanks!!!
 
if the individual currency values are being stored in a table, then also
storing the calculated (total) value in a table violates normalization
rules. recommend you don't do it. instead, just calculate the total value at
runtime, wherever you need it - queries, form, reports.

hth
 
Hello, I hope someone can help me. If my questions is answered in another
post I would appreciate some direction.

I have an access 2003 form that has some currency fieds. I would like a
command button to add up the fields and populate the result in another field
on the form. This should be updated once the button is pressed.

Any ideas? Thanks!!!

If you mean you have to calculate the total, you only need an unbound
text calculating the totals, and thats it!
 
Private Sub CalculateButton_Click()
TotalTextBox = Field1 + Field2 + Field3 '...etc
End Sub

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

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

Back
Top