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 / Tables / January 2004

Tip: Looking for answers? Try searching our database.

Equations in form fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Newton - 15 Jan 2004 00:18 GMT
Using tables, I have built a custom form that has fields
that automatically change in accordance with the
information found in other cells.

For example:
the equation =MOD(text166 - 2, 16) + 16 returns a value of
16 to 31 depending on the value found in text166.

The problem is that occasionally, the value found in
text166 is 1.  And when it is 1, I want a value returned
of 1.

Now, I can probably do this using visual basic, which I
have yet to learn and IF statements.

Is there anything that I can put into that field that will
serve as an IF statement.  If this, display this,
otherwise, display the returned answer.
Greg Maxey - 15 Jan 2004 00:44 GMT
Richard,

How about { IF {=text166 } = "1""1"{=MOD(text166 - 2, 16) + 16}
This is an IF field with compares the value of text16 = 1.  If true "1" is
returned if false your expression result is returned.

Signature

Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in gmaxey@whamspammvps.org

> Using tables, I have built a custom form that has fields
> that automatically change in accordance with the
[quoted text clipped - 14 lines]
> serve as an IF statement.  If this, display this,
> otherwise, display the returned answer.
 
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.