P
Peter Hibbs
Access 2000 - A2007.
I am trying to write a general purpose function which will return a
list of database objects in a string. The function definition looks
something like this :-
Public Function FetchObjectList(vType As Long) As String
The vType variable would hold a value to define which type of object I
need returning. For example -
Value 1 would return a list of local table names (i.e. tables in FE
file) but excluding any System tables.
Value 2 would return a list of linked tables (i.e. tables in BE file)
but excluding any System tables.
Value 3 would return all action queries (i.e. Make-Table, Append,
Update & Delete).
Value 4 would return a list of Macros.
Actually the value of vType is not important, any value will do if it
makes any difference to the code.
The list should be returned as a ; delimited string, i.e.
tblClients;tblContacts;tblNotes or qryClients;qryContacts etc.
I have found code to iterate through the list of tables and queries
but I am having some trouble in identifying the various types of
tables, queries, etc. Does anyone have any code to do this.
Peter Hibbs.
I am trying to write a general purpose function which will return a
list of database objects in a string. The function definition looks
something like this :-
Public Function FetchObjectList(vType As Long) As String
The vType variable would hold a value to define which type of object I
need returning. For example -
Value 1 would return a list of local table names (i.e. tables in FE
file) but excluding any System tables.
Value 2 would return a list of linked tables (i.e. tables in BE file)
but excluding any System tables.
Value 3 would return all action queries (i.e. Make-Table, Append,
Update & Delete).
Value 4 would return a list of Macros.
Actually the value of vType is not important, any value will do if it
makes any difference to the code.
The list should be returned as a ; delimited string, i.e.
tblClients;tblContacts;tblNotes or qryClients;qryContacts etc.
I have found code to iterate through the list of tables and queries
but I am having some trouble in identifying the various types of
tables, queries, etc. Does anyone have any code to do this.
Peter Hibbs.