May 3, 2006 #1 mkingrey Programmer Apr 12, 2006 5 US I would like to return the names of all tables in my database using SQL. I'm using an Access database. Is there a way to do this? Thanks
I would like to return the names of all tables in my database using SQL. I'm using an Access database. Is there a way to do this? Thanks
May 3, 2006 #2 Golom Programmer Sep 1, 2003 5,595 CA Run this SQL Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Type)=1)); [small]No! No! You're not thinking ... you're only being logical. - Neils Bohr[/small] Upvote 0 Downvote
Run this SQL Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Type)=1)); [small]No! No! You're not thinking ... you're only being logical. - Neils Bohr[/small]
May 3, 2006 #3 PHV MIS Nov 8, 2002 53,708 FR I'd replace this: WHERE (((MSysObjects.Type)=1)); with this: WHERE MSysObjects.Type In (1, 4); 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
I'd replace this: WHERE (((MSysObjects.Type)=1)); with this: WHERE MSysObjects.Type In (1, 4); Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886