Change type case of data
From: Timboo (Timboo_at_discussions.microsoft.com)
Date: 02/24/05
- Next message: Wits End.: "Is Access Membership Database Wizard available in Office 2003 as ."
- Previous message: Sunny: "Need help on Stored Procedure"
- Next in thread: Van T. Dinh: "Re: Change type case of data"
- Reply: Van T. Dinh: "Re: Change type case of data"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Feb 2005 08:01:02 -0800
Hi, Im executing an append query to import data into a table. The imported
data source has the names in UPPER CASE and I would like to change this upon
import to Capital first letter only.
I am going to use the following code for standard data entry
Private Sub txtSurname_AfterUpdate()
If StrComp(Me!txtSurname, LCase(Me!txtSurname), 0) = 0 Then
Me!txtSurname = StrConv(Me!txtSurname, vbProperCase)
End If
End Sub
The If clause ensures that if the user correctly types "MacDonald" or
"van Slyke", the program will leave it as entered.
John W. Vinson[MVP]
- Thank you John, but as Im using an Append query, I dont think this can be
applied, any ideas welcome? Thanks Tim
- Next message: Wits End.: "Is Access Membership Database Wizard available in Office 2003 as ."
- Previous message: Sunny: "Need help on Stored Procedure"
- Next in thread: Van T. Dinh: "Re: Change type case of data"
- Reply: Van T. Dinh: "Re: Change type case of data"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|