Looks like you're using an ADODC control. Just set it's CommandType property to adCmdText. You can then set its CommandText property in code:
Adodc1.RecordSource = "SELECT myField FROM myTable where postcode like 'c%'"
Adodc1.Refresh
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.