Thread: SQL from VB
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
kamil b. kamil b. is offline
external usenet poster
 
Posts: 1
Default SQL from VB

Hi,
I need to do function or sub, which is able to edit a SELECT in MS QUERY.
For example:

MS QUERY SQL:
select * from dba.company where name='ABC'

EXCEL VB:
function do_sql(X)
select * from dba.company where name=X
end function

What is the right way to do this. Is it possible to use SQL in VB?

Thanx, kamil