PC Review


Reply
Thread Tools Rate Thread

in access entering data with capitalized first letters only

 
 
=?Utf-8?B?ZGJhZGFtc2tp?=
Guest
Posts: n/a
 
      21st Jan 2006
I'm trying to enter data into an Access database where only the first letter
of each word is capitalized and the rest of the word is lower case
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      21st Jan 2006
Hi dbadamski,

You can use the StrConv function in the AfterUpdate event procedure of a
textbox on a form. For example, in the Northwind sample database on the
Categories form, you can use the following procedure for the CategoryName
textbox:

Option Compare Database
Option Explicit

Private Sub CategoryName_AfterUpdate()
On Error GoTo ProcError

Me.CategoryName = StrConv([CategoryName], 3)

ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in CategoryName_AfterUpdate event procedure..."
Resume ExitProc
End Sub


See the following KB article for more details:
How to use the StrConv function to capitalize words and phrases
http://support.microsoft.com/?id=298607


Tom

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"dbadamski" wrote:

I'm trying to enter data into an Access database where only the first letter
of each word is capitalized and the rest of the word is lower case

 
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
Change capitalized words to capitalized, bold and red Elfego Baca Microsoft Word Document Management 1 19th May 2010 04:30 AM
Capitalized Excel Data paultheroach Microsoft Excel Misc 1 29th Jun 2009 09:20 PM
Problem with capitalized letters showing up lower case in a report Sue Microsoft Access 2 27th May 2008 01:34 AM
Why are letters always capitalized on the left margin =?Utf-8?B?TGl0dGVsZnVzZW1hbg==?= Microsoft Outlook Discussion 2 20th Apr 2006 04:13 PM
Entering Data into a Website through Access Nag Rada Microsoft Access VBA Modules 0 6th Aug 2003 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:58 PM.