A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sentence Case



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2009, 08:29 PM posted to microsoft.public.access.tablesdbdesign
madarame
external usenet poster
 
Posts: 1
Default Sentence Case

Hi there. I'm designing a database and I would like to add a feature in the
database where surnames entered in the table should be converted
automatically to Sentence case. I'm new to acccess and not very conversant
with functions.I've tried using strConv and vbProperCase functions but I cant
seem to get it to work.Could someone please outline the basic procedure for
creating this feature. I'm using Access 07.
Thanks.
  #2  
Old May 25th, 2009, 09:47 PM posted to microsoft.public.access.tablesdbdesign
fredg
external usenet poster
 
Posts: 4,386
Default Sentence Case

On Mon, 25 May 2009 12:29:01 -0700, madarame wrote:

Hi there. I'm designing a database and I would like to add a feature in the
database where surnames entered in the table should be converted
automatically to Sentence case. I'm new to acccess and not very conversant
with functions.I've tried using strConv and vbProperCase functions but I cant
seem to get it to work.Could someone please outline the basic procedure for
creating this feature. I'm using Access 07.
Thanks.


How would any of us know what 'doesn't work' if you don't tell us
exactly what the expression is?

=StrConv([FieldName],3)
Will Capitalize The First Letter Of Each Word In The Field.
It's called Proper Case.

Note that the above will incorrectly capitalize words which ought to
have more than one capital, such as O'Brien, McDonald, Trent-Jones,
etc. and also capitalize words which should not be capitalized, i.e.
van den Steen, van Beethoven, etc.

Is that what you mean by sentence case?

To me, sentence case would only capitalize the first word of a
sentence, leaving all of the other words alone.

=UCase(Left([FieldName],1) & Mid([FieldName],2)
will only capitalize the first word in a sentence.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old May 27th, 2009, 12:35 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Sentence Case

.... assuming only one sentence per [FieldName] record ... g

Regards

Jeff Boyce
Microsoft Office/Access MVP

"fredg" wrote in message
...
On Mon, 25 May 2009 12:29:01 -0700, madarame wrote:

Hi there. I'm designing a database and I would like to add a feature in
the
database where surnames entered in the table should be converted
automatically to Sentence case. I'm new to acccess and not very
conversant
with functions.I've tried using strConv and vbProperCase functions but I
cant
seem to get it to work.Could someone please outline the basic procedure
for
creating this feature. I'm using Access 07.
Thanks.


How would any of us know what 'doesn't work' if you don't tell us
exactly what the expression is?

=StrConv([FieldName],3)
Will Capitalize The First Letter Of Each Word In The Field.
It's called Proper Case.

Note that the above will incorrectly capitalize words which ought to
have more than one capital, such as O'Brien, McDonald, Trent-Jones,
etc. and also capitalize words which should not be capitalized, i.e.
van den Steen, van Beethoven, etc.

Is that what you mean by sentence case?

To me, sentence case would only capitalize the first word of a
sentence, leaving all of the other words alone.

=UCase(Left([FieldName],1) & Mid([FieldName],2)
will only capitalize the first word in a sentence.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.