Need help with formatting a row (1 Viewer)

UseKee

New member
Local time
Today, 17:52
Joined
May 7, 2024
Messages
2
I'm making a genre table, the genres (text) entered are in uppercase, lowercase, etc. I need to convert them to lowercase but with the first letter capitalized.

PD: I am writing this in google translate(My english is not very technical).
 

tvanstiphout

Active member
Local time
Today, 13:52
Joined
Jan 22, 2016
Messages
251
That is called vbProperCase. You can use the StrConv function for that. Look it up in the Help file.
 

tvanstiphout

Active member
Local time
Today, 13:52
Joined
Jan 22, 2016
Messages
251
Help files are mostly online nowadays. Search online for "VBA StrConv" and you should find the page you are looking for.
 

jdraw

Super Moderator
Staff member
Local time
Today, 16:52
Joined
Jan 23, 2006
Messages
15,394
Here's an example
StrConv ("TECH ON THE NET", 3)
Result: "Tech On The Net"

Parámetros o argumentos
texto
La cadena que desea convertir.
conversión
El tipo de conversión a realizar. La siguiente es una lista de parámetros válidos para la conversión.


Descripción del valor del parámetro
vbUpperCase 1 Convierte la cadena a mayúsculas.
vbLowerCase 2 Convierte la cadena a minúsculas.
vbProperCase 3 Convierte la primera letra de cada palabra a mayúsculas. Todos los demás caracteres se dejan en minúsculas.
SUGERENCIA: Si está utilizando la función StrConv en código VBA, puede usar el parámetro vb que figura en la tabla anterior. Si está utilizando esta función en una consulta, deberá utilizar el valor numérico.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 16:52
Joined
Feb 19, 2002
Messages
43,484
Neatness counts so I understand the request to propercase the words but keep in mind that Jet/ACE are not case sensitive by default. so A = a.
 

Users who are viewing this thread

Top Bottom