Question Special character issue

llkhoutx

Registered User.
Local time
Today, 11:50
Joined
Feb 26, 2001
Messages
4,018
I'm letting users specify the name for a table to be created. Can those names be easily parsed to eliminate special charactes, e.g. "yyy&&" is convertred to "yyy", or does the name have to be parsed character by character. I tried to catch the error fired, but none fired and the table was created with Access 2007?:(
 
Why?
Where/how did you try to catch the error or invalid characters?
 
Best to capture in the control validation rule

or in the after update event use replace to remove them

Incidentally for table names, best not to allow spaces so definately one to remove

replace(TableName," ","")
 
backup

why would the users need to specify a name for a created table?
 
Hi gemma,

I was going by this

I'm letting users specify the name for a table to be created

Generally not good practice, I know, but there are times when I have had to provide the facility to build a Create Table query
 

Users who are viewing this thread

Back
Top Bottom