View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
VladimirM VladimirM is offline
external usenet poster
 
Posts: 1
Default ADO SQL: Im getting CRAZY


Hi all!

I cant solve very simple task.
All I need is a query "SELECT * FROM Table WHERE Field LIKE '*value*'"

But it seems Microsoft is too huge company to let me just do that like
in PHP.

Im using DAO because hope it will work more often then ADO now do :)

1) DAO worked ONLY whith syntax [TableName$] but most of examples not
using it.
2) I have working query

Sql = "SELECT * FROM [TestList$]"
Set rs = db.OpenRecordset(Sql)

3) But cant make work WHERE clause like this:

"SELECT * FROM [TestList$] WHERE A LIKE 'asdas'"

It gives me Run-Time 3061. In the internet I read about some
_parameters_ in query.
Anybody can tell me which more PARAMETERS wants from me crazy excel
programmres?

Or just wrong syntax?
Please help.


--
VladimirM
------------------------------------------------------------------------
VladimirM's Profile: http://www.excelforum.com/member.php...o&userid=24993
View this thread: http://www.excelforum.com/showthread...hreadid=385216