Creating queries from strings (VB)

maxhavoc

Registered User.
Local time
Yesterday, 23:34
Joined
Dec 12, 2005
Messages
14
Does anyone know how to create a query object using a string that contains SQL code?

The reason I ask is that I want to be able to run an ad hoc query, but I can't use a RecordSet because there's no way (that I know of) to take the results of a recordset and create a query display out of it (meaning, make it look like a query was executed)

So what I really want to do is to create a query, and then execute it with "DoCmd.OpenQuery()" If that's possible. Any ideas?
 

Users who are viewing this thread

Back
Top Bottom