Mail merge problem

dBase, Calc, CSV, MS ACCESS, MySQL, PostgrSQL, OTHER
Post Reply
FrankPerkins
Posts: 22
Joined: Sun Apr 06, 2008 1:08 am

Mail merge problem

Post by FrankPerkins »

I am attempting to generate address labels from a spread sheet. When I register the data source, everything works, except ZIP codes do not appear in the database. (The column is blank.) Actually, 9 digit zip codes do appear, but most of my zip codes are 5 digits.
Please help.
I am using Windows XP.
Frank
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: Mail merge problem

Post by TheGurkha »

What is that column formatted as inthe spreadsheet. Is it formatted as text?
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Mail merge problem

Post by RoryOF »

TheGurkha wrote:What is that column formatted as inthe spreadsheet. Is it formatted as text?
If I remember correctly a nine digit zip code is written
XXXXX-XXXX
which would require it to be text, to prevent the (implied) subtraction taking place if it is numeric.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
FrankPerkins
Posts: 22
Joined: Sun Apr 06, 2008 1:08 am

Re: Mail merge problem

Post by FrankPerkins »

It is format as a number. However, I believe I tried formatting it as text, with no change.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Mail merge problem

Post by Villeroy »

Format as text and re-enter the whole column like this:
Select the data in question.
Edit>Find>Replace
[More Options]
[X] Current Selection
[X] Regular Expression
Search: .+ [a point and a plus]
Replace: &
[Replace All]

Now the whole column has been converted to text. The database program can not handle columns of mixed text and numbers.

Save the sheet.
Reload the database.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
FrankPerkins
Posts: 22
Joined: Sun Apr 06, 2008 1:08 am

Re: Mail merge problem

Post by FrankPerkins »

If I make a new column for ZIP and type the correct numbers in, it works. (They end up formatted Numbers, General.)
If, however, I COPY the old ZIPs across, format them the same, it doesn't transfer from the spreadsheet to the Data Base.
WTFO??
Will I have to retype every ZIP code?
PS. Is there any way to directly edit the Data Bases created by the Wizard?
Frank
FrankPerkins
Posts: 22
Joined: Sun Apr 06, 2008 1:08 am

Re: Mail merge problem

Post by FrankPerkins »

I had tried my experiments in the previous reply before I read the Find & Replace suggestion. I have now tried that, and it doesn't work. It appears that the Data Base only wants the date in Number, General format.
Frank
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Mail merge problem

Post by Villeroy »

No matter what you do. Just make sure that you have consistent list data.
One row of column labels.
Under that row each column has to be filled with text only or numbers only.
View>Highlight Values [Ctrl+F8] shows numbers in blue font.

As long as we can not talk about your actual data all advice is pointless.
I attach a pair of spreadsheet and connected database with one text column and several numeric columns.
Attachments
test_types.ods
(12.39 KiB) Downloaded 394 times
test_types.odb
(2.73 KiB) Downloaded 269 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Mail merge problem

Post by Villeroy »

http://www.openoffice.org/issues/show_bug.cgi?id=109726
The issue has been fixed (again). I can confirm that Base treats mixed columns as text fields. The fields are not blanked.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply