Using control values within IF field

MS WORD

    Next

  • 1. Provide user chosen features to override microsoft chosen feature.
    It would be greatly appreciated if it were easier to change or disable those features that microsoft seems to think users need when they are, in fact, a nuisance. Of prime concern is the Review feature that opens up with "Final Showing Markup." This may be a wonderful thing for teachers and those who spend their entire existence reviewing the work of others; it is a pain in the butt for those whose lot is production, research, and writing without reviewers who make use of that feature. You could take a lesson from Adobe Acrobat who puts a box allowing the user to check or remove the check for the feature (e.g. help) to be displayed on startup. One of the most echoed complaints I have heard over the last 15+ years is about software companies that believe they know what users want and need and fill programs with unneeded and uncontrollable features.
  • 2. 'delivery point barcode'
    I cannot check the box for 'delivery point barcode' on an envelop. The box is greyed out.
  • 3. All of a sudden I can't use Word.
    I can't open Word. It says it is not setup for this user. I am the administrator and have no guests
  • 4. The text looks like a foreign language ... where do I change this.
    My friend sent me a word document to review that she did for school and I can't read it. It looks like a foreign language, but I saw her type part of it and it looked fine. Why can't I read it it?

Using control values within IF field

Postby T2xpdmllciBDYW15 » Tue, 22 Mar 2005 22:51:06 GMT

Hello,

I'm using Word2003 and I would like to use the result from a check box (i.e. 
True or False) in an IF field/function, but don't know how to.
I've gone as far as typing the following, which doesn't work:
IF (Checkbox(Customer).value=true,YES,NO)
I would also like the field to update automatically when the check box value 
changes.
Any suggestions would be greatly appreciated !

thanks in advance

Re: Using control values within IF field

Postby Greg » Wed, 23 Mar 2005 00:57:17 GMT

Olivier,

I think your only option is an on exit macro to evaluate the checkbox
state.  You and then set the value of another formfield or set a
docVariable to use in an IF field.  Here is a bit of code to get you
started:
Sub EvaluateCB()
With ActiveDocument
 If .FormFields("Check1").Result = True Then
    .FormFields("Text1").Result = "Yes"
   Else
    .FormFields("Text1").Result = "No"
 End If
End With
End Sub


Similar Threads:

1.replacing values based upon a different field having a word within

I suggest coping the table just in case.

First create a select query and in the 'long description field' criteria use 
Run the query and review the data to make sure you are not pulling records 
that you do not want to change.  If there are unwanted records then devise 
additional criteria to eliminate them.

Then change query type by clicking on the icon bar the two pages with down 
arrow on the right and select Update Query.  Enter the new information in the 
design grid. and run the query.

"gdwojo" wrote:

> I need to find  all records in the database and then make a change in a
> different field of that record based on whether the text exists in the field.
> 
> 
> I have a pricing database where I have a discounting scheme that I apply.   I
> take the list price, apply a discount, and then determine if the price is a
> minimum percentage above my cost.  If the discount makes the price less than
> the minimum profit, then I make the customer price the minimum profit,
> otherwise I apply the discount that I have determined.   However,  on one
> specific group of items, I apply a different discounting scheme.  For every
> one of these specific items (call them widgets) the word widget appears in a
> long description field.   For all widgets, if I want to  change the
> percentage of discount so I need to find all widgets and then replace the
> discount percentage.
> 
> If all items are discounted at 20%, and I need widgets to discount at 30%
> then I would like to change the value of my discount field for that record
> from .20 to .30.  Anybody have any ideas?
> 
> Is there any way to do this.   - If not, how do I just put a record that I
> can search on that tells me that the word widget shows up in the description
> field??
> 

2.replacing values based upon a different field having a word within a description

I need to find  all records in the database and then make a change in a
different field of that record based on whether the text exists in the field.


I have a pricing database where I have a discounting scheme that I apply.   I
take the list price, apply a discount, and then determine if the price is a
minimum percentage above my cost.  If the discount makes the price less than
the minimum profit, then I make the customer price the minimum profit,
otherwise I apply the discount that I have determined.   However,  on one
specific group of items, I apply a different discounting scheme.  For every
one of these specific items (call them widgets) the word widget appears in a
long description field.   For all widgets, if I want to  change the
percentage of discount so I need to find all widgets and then replace the
discount percentage.

If all items are discounted at 20%, and I need widgets to discount at 30%
then I would like to change the value of my discount field for that record
from .20 to .30.  Anybody have any ideas?

Is there any way to do this.   - If not, how do I just put a record that I
can search on that tells me that the word widget shows up in the description
field??

3.Using MAILMERGE fields within HYPERLINK fields for Merge to Email

It appears that MAILMERGE fields within HYPERLINK fields are not updated like 
MAILMERGE fields used elsewhere in a mail merge document as the merge is 
being performed.  Is this correct?

For instance, using the statement below within a document for Merge to Email 
should, in theory, insert the value of the PONumber field for each record of 
the data source into the mailto: hyperlink.  If the HYPERLINK field is 
manually updated using F9, the MERGEFIELD value is updated, the PONumber 
value for the current record is incorporated into the hyperlink and the 
hyperlink functions as expected, however, the MERGEFIELD value is not updated 
when the Merge to Email sequences through each record.

{HYPERLINK "mailto: XXXX@XXXXX.COM ?subject=PO%20{MERGEFIELD 
"PONumber"}%20Already%20Paid" \o "Click here to send an email if you've 
already paid"}

Is there a way to ensure that the MERGEFIELD within the HYPERLINK statement 
is automatically updated when the Merge to Email sequences through the data 
source records?

Thanks, Mark V

4.Form Fields within a Control Text Box?

Is this possible to do? I am trying to copy a particular form, with the 
ability to automatically drag data from a form field into the Control Text 
Box.

I know I can do the same thing without the Control Text Box, but due to me 
trying to make an exact copy of a document, the style of the form field needs 
to be the same as the Control Text Box.

Thanks!

5.using an alphanumeric "word" as a field value in an IF statement

I am attempting to create an IF THEN ELSE statement where the field value I'm 
selecting by is alpha numeric. For example, if I have "06s1" in the compare 
to field, the merged document will always insert the "then" option. If I 
modify it and have "06-s-1" in the compare to field, the funtion works 
properly an inserts the appropriate option - then or else.

Is there some coding I can do so that the function can recognize a "word" 
with both numbers and letters in it?

6. Listing Field Values used in a document

7. Can I compare more than two merge field values using =AND or =

8. How do I save a file using the value entered in a text form field



Return to MS WORD

 

Who is online

Users browsing this forum: No registered users and 67 guest