making address mailing labels

mandp523

New Member
Joined
Nov 16, 2004
Messages
9
Hi, I am relatively new to access. I have some things figured out, but not this!
In my access database, I have columns like this:
Last name First Name Spouse Name Address...
My problem is this. When I want to print out my mailing label, I would like it to be something like this:
**** and Jane Jones
I know how to put the "and" in there if both First Name and Spouse Name are filled. But, what do I do if there is only a First Name (no Spouse Name)? I don't want it to show up as
**** and Jones.
Is there some way to put the "and" in there only when both fields are full?
Thank you very much!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Where are you storing the surname?
 
Upvote 0
An expression like this may work:

IIf(IsNull([SpouseName]),[Firstname] & " " & [Surname],[Firstname] & " and " & [SpouseName] & " " & [Surname])

Replace the field names to match your own.
 
Upvote 0
Thank you very much!
So you live in Scotland! Isn't the internet great!
Thank you very much for all of your help!
 
Upvote 0

Forum statistics

Threads
1,221,829
Messages
6,162,229
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top