Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

Loop through report objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SHIPP - 15 Mar 2005 16:01 GMT
Is there a way to loop through all the report objects and write their name
and description to an access table in the same database?
Signature

M. Shipp

Allen Browne - 15 Mar 2005 16:09 GMT
Yes, but why?

Access already has a list of all the reports in a table. You can query it
with:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32764) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY [Name];--
Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Is there a way to loop through all the report objects and write their name
> and description to an access table in the same database?
SHIPP - 15 Mar 2005 17:25 GMT
Thanks a lot. That's perfect. Are there other values to look at other objects
such as queries, tables, modules, macros, etc?

> Yes, but why?
>
[quoted text clipped - 10 lines]
> > Is there a way to loop through all the report objects and write their name
> > and description to an access table in the same database?
Allen Browne - 15 Mar 2005 17:43 GMT
The Type is:
1 for tables;
6 for linked tables;
4 for ODBC linked tables;
5 for queries;
-32768 for forms;
-32761 for modules.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Thanks a lot. That's perfect. Are there other values to look at other
> objects
[quoted text clipped - 12 lines]
>> > name
>> > and description to an access table in the same database?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.