VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Accent Insensitive database querying

Karabunga  (2 Submissions)   Databases/Data Access/DAO/ADO   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Since MS-Access doesn't support accent insensitive queries by itself (MS SQL Server does as far as I know), I had to create a function that would fix the problem. With this function, it is possible to turn any SQL query into an accent insensitive query. With a few little modifications, it works great with ASP too!

Inputs
Example: STRSQL = "SELECT * FROM MyTable WHERE animal LIKE '%" & AccIns("ELEPHANT") & "%'" This will return any record where animal = Élephant, Elephant, éléphant, eléphant, etc. You get the picture. Now have fun! :)

Assumes
You need to know how SQL queries work.

Returns
An accent insensitive string to use against a database.

Side Effects
My friend's computer exploded last time he used this function, so watch out!

Rate Accent Insensitive database querying (9(9 Vote))
Accent Insensitive database querying.bas

Accent Insensitive database querying Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters