PC Review


Reply
Thread Tools Rate Thread

Adding a comma for salutation

 
 
=?Utf-8?B?TnlsYSBL?=
Guest
Posts: n/a
 
      6th Jul 2007
I created a report, which is a letter to our employees, that automatically
populates the names of the employees in the salutation section of the letter.
The names being populated is based on a query. The question is, how can I
have a comma, which is a label in the report, move based on the length of the
name?

For example: The report is set up this way: "Dear ,". When I run
the query to populate the names, the output goes like this: "Dear David
Johnson ,". The comma stays in place while having the employee name field
sized to the longest name on the list. The bottom line is, I'd like for the
comma to automatically adjust its position so that the output would always be
something like this: "Dear David Johnson,".

The employee name field has a property set to "yes" for "Can Grow", but that
still doesn't fix the comma placement problem I'm having.

I hope my explanation made sense. Any suggestion you can provide will be
greatly appreciated.

Thanks,
Nyla
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      6th Jul 2007
Add the comma to the name in a query, and use that query as the report's
RecordSource.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Nyla K" <(E-Mail Removed)> wrote in message
news:7989A7AA-0011-445B-B3A4-(E-Mail Removed)...
>I created a report, which is a letter to our employees, that automatically
> populates the names of the employees in the salutation section of the
> letter.
> The names being populated is based on a query. The question is, how can I
> have a comma, which is a label in the report, move based on the length of
> the
> name?
>
> For example: The report is set up this way: "Dear ,". When I
> run
> the query to populate the names, the output goes like this: "Dear David
> Johnson ,". The comma stays in place while having the employee name
> field
> sized to the longest name on the list. The bottom line is, I'd like for
> the
> comma to automatically adjust its position so that the output would always
> be
> something like this: "Dear David Johnson,".
>
> The employee name field has a property set to "yes" for "Can Grow", but
> that
> still doesn't fix the comma placement problem I'm having.
>
> I hope my explanation made sense. Any suggestion you can provide will be
> greatly appreciated.
>
> Thanks,
> Nyla



 
Reply With Quote
 
IUnderstandSomething
Guest
Posts: n/a
 
      6th Jul 2007
On Jul 6, 6:46 pm, Nyla K <N...@discussions.microsoft.com> wrote:
> I created a report, which is a letter to our employees, that automatically
> populates the names of the employees in the salutation section of the letter.
> The names being populated is based on a query. The question is, how can I
> have a comma, which is a label in the report, move based on the length of the
> name?
>
> For example: The report is set up this way: "Dear ,". When I run
> the query to populate the names, the output goes like this: "Dear David
> Johnson ,". The comma stays in place while having the employee name field
> sized to the longest name on the list. The bottom line is, I'd like for the
> comma to automatically adjust its position so that the output would always be
> something like this: "Dear David Johnson,".
>
> The employee name field has a property set to "yes" for "Can Grow", but that
> still doesn't fix the comma placement problem I'm having.
>
> I hope my explanation made sense. Any suggestion you can provide will be
> greatly appreciated.
>
> Thanks,
> Nyla


With Excel and Access it is very easy to make a text like you want:
Ex: =[FirstName} & " " & [LastName] & ", " gives Paul Johnsen,

Hope it helps!

Hans Kristian Eide

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a comma after a field LG Microsoft Access Queries 1 28th Oct 2009 06:33 PM
Adding a comma after an int field =?Utf-8?B?QmVubmll?= Microsoft Excel Programming 4 13th Mar 2006 02:42 AM
Adding a comma after Last Name =?Utf-8?B?Qmx0b255?= Microsoft Access Queries 4 6th Mar 2006 05:42 PM
adding a comma at the end of a number to every cell Jeff Microsoft Excel Misc 3 30th Oct 2003 08:43 PM
Adding a comma in a cell Jab Microsoft Excel Worksheet Functions 3 1st Oct 2003 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 AM.