Hello,
today I noticed a strange behaviour on a simple DLookup function on two linked tables.
value = Nz(DLookup("field1", "table", "field2='" & activeuser & "'"), "NN")
If the "table" is a linked table to SQL server database, then comparison will be case unsensitive (which I prefer). If the "table" is a linked table to a Oracle database table then the comparison will be "case sensitive".
The forms with the instruction are always with "Option Compare Database"
As my application is linked to both type of database, how could I avoid this?
Shall I replace the Dlookup functions with SQL select statements, i.e. open a recordset and then extract the value?
Andy
today I noticed a strange behaviour on a simple DLookup function on two linked tables.
value = Nz(DLookup("field1", "table", "field2='" & activeuser & "'"), "NN")
If the "table" is a linked table to SQL server database, then comparison will be case unsensitive (which I prefer). If the "table" is a linked table to a Oracle database table then the comparison will be "case sensitive".
The forms with the instruction are always with "Option Compare Database"
As my application is linked to both type of database, how could I avoid this?
Shall I replace the Dlookup functions with SQL select statements, i.e. open a recordset and then extract the value?
Andy