I have a small question, why can't I use this code?
da = New OleDbDataAdapter("Select * from Company where Aktiv=true and Cat=L order by Company", conn)
What is the right way when I have 2 "where" statements?
Best regards
Marcus
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 28, 2011, 6:27 AM
However, I would expect that you'd need to surround character or string literals with single quotes, so I'd try:
Also, in your 'order by' clause, is it in fact the case that you have a column called Company within the Company table?
Marcus OhlssonPosted Jul 28, 2011, 7:11 AM
First I would like to thank you for your quick respond.
You were right, I just needed the ' around "L"
Br Marcus