Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access paramterised queries

Status
Not open for further replies.

Bakunin

Programmer
Dec 21, 2000
31
GB
Hi,
I have a simple question. Is it possible to pass parameters from VB(6) to an MS Acess queries and get a recordset back to VB using ADO?

I thought I had seen a method of doing this before but haven't seen it since.

ta.
 
It seems very possible. I have never done that before, but from VB(6), I would establish a DAO connection to that Access database and pull the SQL from that Querydef object. Next, modify the SQL with the parameters, then create the recordset in ADO.

I am sure someone else has a more definitive answer, but I hope my suggestion helps you in the right direction.

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top