allreports dont work

P

Pierre

Hi all,

This is working

Dim obj as accessobject
Dim dbs as object
set dbs=application.currentdata
for each obj in dbs.allqueries
if obj.isloaded then
docmd.close acquery, obj.name, acsaveno
endif
next
set dbs=nothing
set obj=nothing

This is not working ***** Why?

Dim obj as accessobject
Dim dbs as object
set dbs=application.currentdata
for each obj in dbs.allreports
if obj.isloaded then
docmd.close acreport, obj.name, acsaveno
endif
next
set dbs=nothing
set obj=nothing


regards,
pierre
 

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