how to create and open query on fly in adp

J

Jerry Qu

Hi All

how to create and open query on fly in adp?

in mdb we use:

dim qdf as querydef

on error resume next
docmd.deleteobject acquery, "queryname"

set qdf = currentdb.createquerydef("queryname",strSQL)

docmd.requery("queryname")

docmd.openquery "queryname"


it will create and display query on fly according to the strSQL which is
dynamic.


But, how should I do the samething in adp where there is using above code
nothing happen.

TIA

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top