Calculated fields in a form from a drop down list.

Q

quovadis

Hi
I want to have a calculated field that calculates its result from a
field that is a drop down list.
I can get the formula to work when the first field is a text field
(numeric format) but when I change that field to a drop down list the
calculated field doesnt work. The name of the field is the same in the
formula.

It appears to me that i need to change the format of the drop down list
to numeric some how but I dont know how.
Cant find anything on the Internet.

If you can help I would be greatful.
 
D

Doug Robbins - Word MVP

Run a macro containing code similar to the following (changing the names of
the formfields as necessary) on exit from each of the formfields that
contribute to the calculation:

With ActiveDocument
.FormFields("Text2").result = .FormFields("Text1").result *
..FormFields("Dropdown1").DropDown.Value
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
Q

quovadis

Doug said:
Run a macro containing code similar to the following (changing the names of
the formfields as necessary) on exit from each of the formfields that
contribute to the calculation:

With ActiveDocument
.FormFields("Text2").result = .FormFields("Text1").result *
.FormFields("Dropdown1").DropDown.Value
End With
Thanks very much.
 

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