Forms Calculations

D

Donald Sweat

If I want to calculate field3=field2*field1 before the record is saved on a
form, what is the best way to do this?

Thanks,
Donnie
 
F

fredg

If I want to calculate field3=field2*field1 before the record is saved on a
form, what is the best way to do this?

Thanks,
Donnie

As control source of an UNBOUND text control:
=[Field2]*[Field1]

The result of the calculation will appear on the form... but is NOT
saved, nor should it be saved, in a table.

Any time you need the result of [Field2]*[Field1], simply recalculate
it, as above.
 
G

Guest

thank you. I needed this.. I was putting my expression in the incorrect
spot. This really helped.
--
Sandie Hetland
Ephesians 2:1


fredg said:
If I want to calculate field3=field2*field1 before the record is saved on a
form, what is the best way to do this?

Thanks,
Donnie

As control source of an UNBOUND text control:
=[Field2]*[Field1]

The result of the calculation will appear on the form... but is NOT
saved, nor should it be saved, in a table.

Any time you need the result of [Field2]*[Field1], simply recalculate
it, as above.
 

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