Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
Glossary

New Entries Added Almost Daily!
Click here to get on our Mailing List

   

   Access    Excel    Word    Windows    HTML

 
MS Access

StrConv

Using the StrConv Function

In this tutorial you will learn how to use the StrConv Function.

The StrConv function returns the position of the first occurrence of a string in another string.

=StrConv ( string, conversion [, LCID ] )

string a valid String

conversion an Integer sum to determine the conversion type

LCID the LocaleID if different to the System one

In this example we will use a given sentance: "change the case" and we wish to Proper Case it, i.e. make every first initial of a word Capitalised.

StrConv - Function Engine

The result is Change The Case.

The Settings are:

Settings
ConstantValueDescription
vbUpperCase1Converts the string to uppercase characters.
vbLowerCase2Converts the string to lowercase characters.
vbProperCase3Converts the first letter of every word in string to uppercase.
vbUnicode64Converts the string to Unicode using the default code page of the system. (Not available on the Macintosh.)
vbFromUnicode128Converts the string from Unicode to the default code page of the system. (Not available on the Macintosh.)

FORM

In a Form you could set the Default Value of a Textbox to

	=StrConv("change the case", 3)
	
VBA

In a Form add a TEXTBOX control and rename it "txtStrConv", then you could add the following in the Load Event.

	Private Sub Form_Load()
		txtStrConv = StrConv("change the case", 3)
	End Sub
	

This Function can be used instead of UCase and LCase


Courses

Access 2013 Access Expert 13

Access 2003 Access 222

Seminars

Access 2007 Access SQL 2

Search

You can find more about this by searching the website.


Alex Hedley (Avatar) By: Alex Hedley


Click here to sign up for more FREE tips

 

You may want to read these articles from the 599CD News:

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP