473,507 Members | 2,504 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 11864
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
2107
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 ...
2
3318
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...
7
3886
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...
12
1913
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
14836
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
1496
by: Joe | last post by:
Hello All: Deos anyone know of a simple way to convert a string to proper case? TIA, -- Joe
0
2485
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
1473
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...
0
873
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
2217
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.. ...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7110
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...
1
7030
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...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
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,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.