H hakeem777 via AccessMonster.com Feb 15, 2008 #1 I am using access 97 and how do I get all the names of report by macro or vb code? Thanks.
A Allen Browne Feb 15, 2008 #2 Here you go: SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type = -32764 ORDER BY MSysObjects.Name; As you found, you can't use the AllReports collection in Access 97.
Here you go: SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type = -32764 ORDER BY MSysObjects.Name; As you found, you can't use the AllReports collection in Access 97.
A Allen Browne Feb 15, 2008 #3 Here's further details, showing a couple of ways to get the names of reports into a list box: http://allenbrowne.com/ser-19.html
Here's further details, showing a couple of ways to get the names of reports into a list box: http://allenbrowne.com/ser-19.html