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
Problems with OleDbDataAdapter
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jul 28, 2011, 2:27 AM EDT
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 Ohlsson12 reputationPosted Jul 28, 2011, 3:11 AM EDT
First I would like to thank you for your quick respond.
You were right, I just needed the ' around "L"
Br Marcus