Wordperfect updating fields

IFNOTBLANK (SELLERSNAME) FIELD(SELLERSNAME)ENDIF IFBLANK (SELLERSNAME) MRGCMND(SELLERSNAME)ENDIF This works fine if I merge it the second time, but does not keep the fields in if I want to merge the form a third time after adding additional information to the data file. Why do you want to run the merge before you have all of the information - what's the situation, what are you producing, for whom, etc.? Yes if you remember to reinsert the MRGCMND command the second, third time... MRGCOMMAND() purpose is to have the merge insert, rather than execute a merge command. I suppose in theory you could nest the entire IFNOTBLANK statement, but it seems to me it wouldn't work, that the first merge would just process all of the nested If/Then statements.

wordperfect updating fields-27

It looks like what's happening is that during the first merge, your IFNOTBLANK statement is replaced by a simple merge field code (not by another IFNOTBLANK statement), so the next time you run the merge, there is no IFNOTLBLANK statement to control what happens if the data field is blank.

The data is filled in when the file is opened and a then a macro runs which creates the new folder and subfolders and various other documents including this info sheet. In your code, you are not inserting a merge commnand into the document just text.

To set up your form to make it work for 3 merges, use this: IFNOTBLANK(SELLERSNAME) FIELD(SELLERSNAME) ELSE MRGCMND(IFNOTBLANK (SELLERSNAME) FIELD(SELLERSNAME) ELSE MRGCMND( (SELLERSNAME)))ENDIF To make it work for 4 merges: IFNOTBLANK (SELLERSNAME) FIELD(SELLERSNAME) ELSE MRGCMND (IFNOTBLANK (SELLERSNAME) FIELD(SELLERSNAME) ELSE MRGCMND (IFNOTBLANK (SELLERSNAME) FIELD(SELLERSNAME) ELSE MRGCMND ((SELLERSNAME))))ENDIFENDIFSeems my bright idea is not so shiny.-)} I just spend a little time trying to get the commands to If Not Blank: insert the Field Else: Reinstate the original structure, so that it would still work after any number of merges . When you merge the above, the results will be either the contents of field 2 or, if that field is empty: IFBLANK(2) ELSE FIELD(2) ENDIF This provides you with the basis for your new frm-file.

Apparently, you do not know ahead of time whether or not the field will be empty; nor how many times you will need to use the output of the merge as a new frm-file.

The form is a real estate information sheet, which after being merged the first time needs to be updated as additional data is received and entered into the dat file.

The form also contains information which is entered manually by entering dates and telephone conversations.

The form is used as a information sheet so the attorney or his/her staff does not need to pull the actual file to see the status.

The dat file is also used when merging with other forms.

When you merge documents, you produce varying copies of a form document.

Each copy contains specific information from a record in a data source, such as a data file, an address book, or keyboard input.

This is an example of a data text file containing 1) ENDFIELD codes and 2) ENDRECORD codes. This is an example of a data table file containing 1) records, 2) fields, and 3) field names.

Tags: , ,