Aug 11, 2006 #1 megatron7 Programmer Apr 18, 2005 11 US Does anyone know how to get a list of all the table names in the database.
Aug 11, 2006 1 #2 PHV MIS Nov 8, 2002 53,708 FR A starting point (VBA code): For Each tdf In CurrentDb.TableDefs Debug.Print tdf.Name Next (SQL code) SELECT Name FROM MsysObjects WHERE Type In (1, 4, 6) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
A starting point (VBA code): For Each tdf In CurrentDb.TableDefs Debug.Print tdf.Name Next (SQL code) SELECT Name FROM MsysObjects WHERE Type In (1, 4, 6) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886