Here is code:
but as you can see there is srtX which sometime is not active, when strX is not active, active is srtY.
So is it possible to implement bout string this function, and function will use active one?
something with OR...like this but not working...
Code
SQLQuery "SELECT [a] FROM [b] WHERE [c]='" & strX or strY & "'", strFilePath, blnReturn, varArray
thx.