473,785 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

convert strings to proper case

53 New Member
Hello please can someone help me with the problem of automatically changing the first letter of surnames and names into capital letters.
i am able to do the postcode where in the format box i typed in ">", to get all the letter inm capital letters. i do not know if the character lenght is important.
cheers
Feb 24 '07 #1
3 11890
ADezii
8,834 Recognized Expert Expert
Hello please can someone help me with the problem of automatically changing the first letter of surnames and names into capital letters.
i am able to do the postcode where in the format box i typed in ">", to get all the letter inm capital letters. i do not know if the character lenght is important.
cheers
The StrConv() Function with the vbProperCase Parameter will convert the first letter of every word into Upper Case.
Expand|Select|Wrap|Line Numbers
  1. Debug.Print StrConv("john wilkes booth",vbProperCase)
  2.  
  3. Output:
  4. John Wilkes Booth
Feb 24 '07 #2
panjap
53 New Member
The StrConv() Function with the vbProperCase Parameter will convert the first letter of every word into Upper Case.
Expand|Select|Wrap|Line Numbers
  1. Debug.Print StrConv("john wilkes booth",vbProperCase)
  2.  
  3. Output:
  4. John Wilkes Booth

thankyou for your help, and i am sorry for the late reply
i do not understand what the vbProperCase Parameter is and i tried to directly pate this into the code format in access but it did not work. have you got any sugesstions.
cheers for your help, much appreciated!
Feb 26 '07 #3
ADezii
8,834 Recognized Expert Expert
thankyou for your help, and i am sorry for the late reply
i do not understand what the vbProperCase Parameter is and i tried to directly pate this into the code format in access but it did not work. have you got any sugesstions.
cheers for your help, much appreciated!
The 2nd Parameter to the StrConv() Function, in this case vbProperCase, tells the Function what display format to produce the result in. in this specific case, vbProperCase tells the Function to convert the first letter of every word in the string to uppercase. I see no reason why it will not work for you. Please post your code and I'll have a look.
Feb 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2134
by: ToddT | last post by:
i'm trying to convert names to their proper case (e.g. "todd" -> "Todd") using the following rountine: Private Function ConvertToProperCase(ByVal stringValue As String) As String Dim ci As New System.Globalization.CultureInfo("en-US", False) Dim properCaseValue As String properCaseValue = stringValue.Replace("'", "' ")
2
3336
by: Yoshitha | last post by:
Hi I have a string like "KRISHNA MURTHY" in the database when i retrieve from database it has to show "krishna Murthy" (the first letters must be capitals) in the field of datagrid of my asp.net application
7
3896
by: John A Grandy | last post by:
does anyone know of an intrinsic .NET function , or font , or other mechanism , to do "proper-case all-caps" ... ? so, for a name like "Arnold Schwarzenegger" ... .... I want it entirely in capital letters , "ARNOLD SCHWARZENEGGER", *except* that the "A" and the "S" should be a slightly larger font-size than the rest of the letters ...
12
1939
by: Brian Henry | last post by:
is there function to do proper case formatting on a string? FoxPro use to have a proper function that did this for you... thanks
1
14854
by: Lal | last post by:
Dear all, Is any method to covert to proper case? like STORE 'VISUAL FOXPRO' TO gcExpr2 ? PROPER(gcExpr2) && Displays "Visual Foxpro" please help
4
1504
by: Joe | last post by:
Hello All: Deos anyone know of a simple way to convert a string to proper case? TIA, -- Joe
0
2499
by: pwongforum | last post by:
Hi I would like to create proper case user defined function on DB2 IBM...is there any advice on this? pls...
3
1482
by: Michael A. Covington | last post by:
Is there a built-in way to convert strings to and from their syntactic representation in C#? For example, suppose I have a string containing 'a' and a newline character and 'b'. Is there some built-in way to render this as a string containing the characters 'a' '\' 'n' 'b' ? And the inverse?
0
883
by: RajaniP | last post by:
What should we do in the case SQL was installed without the proper case order? How can we determine what case order SQL was installed with?
2
2242
by: CD | last post by:
I have a asp page pulling results from an Access DB. I have no control of the data input to the db. All the information is entered in Upper case. It contains fields like address, city, etc.. DB data: AddressColumn: 123 BILL AVENUE format to 123 Bill Avenue Is there a way to format the data on the webpage in proper case with a fucntion or routine? I am not a programmer by trade but can follow logic.
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.