Hello All,
I'm just beginning to work with Access 2000 and VBA. I've been reading a lot of your threads and have been able to incorporate some of your solutions into my first address book project. Do you remember those early successes? Well, I wanted to do a mail merge using MS Word 2000 and my new address DB. I thought I’d be real smart and create fields for: abFirstName, abLastName and abSpouse in my tblAddressBook table. I then created a query to be selected in Word because I only wanted a few records to be considered.
In my Word document I wanted to have a greeting: Dear <<abFirstName>> and <<abSpouse>>,
Here is the problem: when a record has no value in the abSpouse field the mail merge goes ahead and prints:
Dear Firstname and ,
Short of “fat fingering” my database to add the prefix “ and “ & spouse name is there a preferred method to get the “ and “ to be omitted when abSpouse field is null? I also don’t want to violate the rules of normalization and create another field, abGreeting, in which the first name and spouse’s names would be repeated.
Thanks in advance.
Divit11
I'm just beginning to work with Access 2000 and VBA. I've been reading a lot of your threads and have been able to incorporate some of your solutions into my first address book project. Do you remember those early successes? Well, I wanted to do a mail merge using MS Word 2000 and my new address DB. I thought I’d be real smart and create fields for: abFirstName, abLastName and abSpouse in my tblAddressBook table. I then created a query to be selected in Word because I only wanted a few records to be considered.
In my Word document I wanted to have a greeting: Dear <<abFirstName>> and <<abSpouse>>,
Here is the problem: when a record has no value in the abSpouse field the mail merge goes ahead and prints:
Dear Firstname and ,
Short of “fat fingering” my database to add the prefix “ and “ & spouse name is there a preferred method to get the “ and “ to be omitted when abSpouse field is null? I also don’t want to violate the rules of normalization and create another field, abGreeting, in which the first name and spouse’s names would be repeated.
Thanks in advance.
Divit11