Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Calculated fields in a form from a drop down list.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
quovadis - 29 Apr 2006 08:58 GMT
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.
Doug Robbins - Word MVP - 29 Apr 2006 09:59 GMT
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

Signature

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

> Hi
> I want to have a calculated field that calculates its result from a field
[quoted text clipped - 9 lines]
>
> If you can help I would be greatful.
quovadis - 30 Apr 2006 03:52 GMT
> 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
[quoted text clipped - 4 lines]
> .FormFields("Dropdown1").DropDown.Value
> End With

Thanks very much.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.