Re: Passing values to MS Access Reports via COM interop and vb.net
- From: Cindy M -WordMVP- <C.Meister-C@xxxxxxxxxx>
- Date: Fri, 25 Nov 2005 10:46:28 +0100
Hi Andrew,
> Two problems I have encountered thus far is with consuming a list of reports
> in the reports collection of the file. Running this query "SELECT
> MSysObjects.Name FROM MSysObjects " returns an error 'No Read permission on
> MSysObjects'. Selecting the database in access and specifically setting read
> permissions on all system tables does not fix the issue and no workgroup
> information file has ever been used on this network.
>
> The other problem I have had is not being able to get the list of report
> names from a collection through ADO commands or DAO commands.
>
DAO/ADO supply only the data, not the Access structures available in a
database. As far as I know, the only way to get a list of reports is to
automate the Access database (open the *.mdb file) then (extract from Help):
"Note To list all reports in the database, whether open or closed, enumerate
the AllReports collection of the CurrentProject object. You can then use the
Name property of each individual AccessObject object to return the name of a
report."
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
.
- Follow-Ups:
- Re: Passing values to MS Access Reports via COM interop and vb.net
- From: Andrew Carlson
- Re: Passing values to MS Access Reports via COM interop and vb.net
- Prev by Date: Re: Strange crash automating Word 2000 from MFC wrapper
- Next by Date: Re: dsofile CustomProperties in document header
- Previous by thread: Images in document not saved when invoking SaveAs
- Next by thread: Re: Passing values to MS Access Reports via COM interop and vb.net
- Index(es):
Relevant Pages
|