Searching database for name of table or parts thereof?

F

FSPH

Hi there,

I have about 50 tables in my Access database. As you can imagine, it can be
difficult to find specific tables. I would like to search all the tables for
a table name or parts thereof.

How can I do that? I looked for it, but could not come up with an approach.

Thank you for your help.
 
M

Maury Markowitz

F

FSPH

Hi there,

thanks very much for the VBScript programming solution.

Is there really no built in functionality in Access? I am looking for a
command like "Search data tables" that I can click on........



Maury Markowitz said:
I have about 50 tables in my Access database. As you can imagine, it can be
difficult to find specific tables. I would like to search all the tables for
a table name or parts thereof.

http://databases.aspfaq.com/database/how-do-i-get-a-list-of-access-tables-and-their-row-counts.html

Basically:

SELECT Name FROM MSysObjects
WHERE
(Left([Name],1)<>"~")
AND (Left([Name],4) <> "MSys")
AND ([Type] In (1, 4, 6))
AND [put your search here, like] name LIKE 'mytable%'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top