From within OOoBasic I run a query to retrieve data from a datasource.
Code: Select all
"SELECT " & """" & sSearchName & """" & ", " & sNames & " FROM " & P_SNameDataTabel &_
" WHERE "& """" & sSearchName & """" & " LIKE " & sFind & " ORDER BY " & """" & P_SCurSearchName & """"
This works. But I would like to get rid of case sensitivines.
The OOo wiki shows info about functions.http://wiki.services.openoffice.org/wik ... Procedures
It shows the UCASE / UPPER functions.
However, I get an error when using it as follows:
Code: Select all
... " WHERE UCASE("& """" & sSearchName & """" & ") LIKE " & UCASE(sFind) & " ORDER BY " ....
... FROM Sheet3 WHERE UCASE("Voornm") LIKE 'JA%' ORDER
This in connection with a flat, file based datasource.
I heard from some else with a postgresSQL, that it works there...
Replacing UCASE with upper: same problems.
No doubt that there are some differences in designing queries for
- internal HSQLDB
- connected flat databases
- database x with its own driver ...
THus I think that is the rot cause for my problem.
Nevertheless my question: is there a way to have query, to a random datasource from within OOo Basic, that is not case sensitive ...
Thanks,
Cor