Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Some data Merging as Zero, not the text in the data
I am merging data from an Excel database into a word document using the mail merge feature. I am merging a column of data with a header name of "unit$". I have noticed that in most cases it merges data accurately, but with some instances, where the datasource is text, like upper, east , west etc, it will merge into the document as a 0 (zero). When I look at the merge field in the merge document, it shows as "unit", not "unit$". I cannot seem to place "unit$", as all my efforts automatically revert to "unit" Is this the cause of my inaccurately merged data? Are "$" not permitted in merge fields? Jenn -- MaxArk |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Some data Merging as Zero, not the text in the data
The issue here is that when Word connects to an Excel data source, a
determination is made of the type of data that is in each of the fields by the content of the first n records (n maybe 8, but not sure about that) The problem that you are experiencing can be overcome by ensuring that the first record in the datasource ( a dummy record if necessary) contains text data rather than numeric data. You may also be able to overcome the issue by changing the way in which Word connects to the datasource. That is done by checking the box for "Confirm file format conversion on open" under Word OptionsAdvancedGeneral in Word 2007 or under ToolsOptionsGeneral in earlier versions. After you make that change, when you attach the data source to the mail merge main document, a dialog box will appear in which you can select the method by which the attachment is made. Try the DDE option. Another thing that should work is to specifically format the cells in that column in Excel as Text rather than having it formatted as General. -- 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, originally posted via msnews.microsoft.com "MaxArk" wrote in message ... I am merging data from an Excel database into a word document using the mail merge feature. I am merging a column of data with a header name of "unit$". I have noticed that in most cases it merges data accurately, but with some instances, where the datasource is text, like upper, east , west etc, it will merge into the document as a 0 (zero). When I look at the merge field in the merge document, it shows as "unit", not "unit$". I cannot seem to place "unit$", as all my efforts automatically revert to "unit" Is this the cause of my inaccurately merged data? Are "$" not permitted in merge fields? Jenn -- MaxArk |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Some data Merging as Zero, not the text in the data
There's a fairly detailed page about the "0" problem at
http://tips.pjmsn.me.uk/t0005.htm (although it is a bit out of date). Although Doug has told you most of the useful workarounds, changing the format of the cell may or may not be enough once data of the wrong format has already been entered. In that case, the following may do the trick: - select the column - select the Data|Text to Columns... menu option - click Next through the wizard until you reach Step 3 of 3, then select Text as the Column Data Format. When I look at the merge field in the merge document, it shows as "unit", not "unit$". I cannot seem to place "unit$", as all my efforts automatically revert to "unit" Is this the cause of my inaccurately merged data? Are "$" not permitted in merge fields? No - the problem is the one described by Doug. The other problem is that Word will strip out $ from field names, hence "unit" instead of "unit$", but it only renames the field - it doesn't ignore it altogether. Peter Jamieson http://tips.pjmsn.me.uk On 12/04/2010 03:47, MaxArk wrote: I am merging data from an Excel database into a word document using the mail merge feature. I am merging a column of data with a header name of "unit$". I have noticed that in most cases it merges data accurately, but with some instances, where the datasource is text, like upper, east , west etc, it will merge into the document as a 0 (zero). When I look at the merge field in the merge document, it shows as "unit", not "unit$". I cannot seem to place "unit$", as all my efforts automatically revert to "unit" Is this the cause of my inaccurately merged data? Are "$" not permitted in merge fields? Jenn |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
merging data from Excel with data having digit "0" infront | Mailmerge | |||
Merging from 3 data sources | Mailmerge | |||
My data is not merging as it appears in my data source | Mailmerge | |||
Merging text with HTML tags as data source into single word docume | Mailmerge | |||
Merging Data | Microsoft Word Help |