Hi Kevin
The best method depends on what you want to do with the list.
You can enumerate the AllForms collection:
Dim o As AccessObject
For Each o In CurrentProject.AllForms
Debug.Print o.Name ' do something more interesting here if you like!
Next
You can also write a query on the MSysObjects table:
SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type=-32768;
Best wishes,
Graham
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Monday, 6 March 2017 23:09
To: MS_Access_Professionals <MS_Access_Professionals@yahoogroups.com>
Subject: [MS_AccessPros] Get a list of all form names
Dear All-
Is it possible to get a list of all form names by running a command button? Thanks in advance.
Best Regards,
Kevin
Posted by: "KEVIN Z." <qingqinga@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (5) |
Tidak ada komentar:
Posting Komentar