Question : convert text to lowercase in a table

HI.
I have a table in a Microsoft Access database. I want in this table all records from "Name" fild to be automaticaly convert to lowercase text and also to not let me use sings like "<>?/{}[]"

Thank you

example
Name                        to transform in
Edi SMITH                  edi smith
MaRK Nex                mark nex

Answer : convert text to lowercase in a table

The code is a SQL query. You can create a new query, switch to SQL view, paste it there, and adjust your table and field names. Each time it's run, it will convert all strings stored in the field to lower case.

If you need this to happen regularly during editing, you should perhaps use the "after update" event of the text box displaying it.

(°v°)
1:
2:
3:
Private Sub txtName_AfterUpdate()
    txtName = LCase(txtName)
End Sub
Random Solutions  
 
programming4us programming4us