Display the results via QBE or report

I

Ian Shaw

Hi Guys,

I need to be able to display the results of a query that is written in VBA
in the same manner that a QBE is displayed. The query needs to be updateable
also I need to sometimes have the ability to send the results of the query to
a report. Is there any code that can enable me to do this??
 
I

Ian Shaw

Thanks Mate!!


Your code does not have the ability to already exist in the database. I
have some code that shall work if the "qrytemp" query already exists but I
don't know how to check if the query exists already in the database.

The code that i use if the query exists is by using the following code:
SET qdftemp = Currentdb.Querydefs("qrytemp")
qdftemp.SQL = vsql
Docmd.openquery "qrytemp"

Is there such code that I can use to determine if a query is already being
used??

Cheers
Ian
 

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