hide, display and rename a table in VBA

P

Paul James

Can anyone tell me the VBA code to perform the following operations?

1. hide a table named "tblData";
2. display a hidden table named "tblData";
3. rename tblData to tblData2.

Thanks in advance.

Paul
 
M

Marshall Barton

Paul said:
Can anyone tell me the VBA code to perform the following operations?

1. hide a table named "tblData";
2. display a hidden table named "tblData";
3. rename tblData to tblData2.

I am unaware of any way to hide or unhide a table in VBA.
(I think it may be a new feature in A03)

You can rename a table in the current database with this
kind of code:

CurrentDb.TableDefs("tblData").Name = "tblData2"
 
P

Paul James

Thanks, Marsh.


Marshall Barton said:
I am unaware of any way to hide or unhide a table in VBA.
(I think it may be a new feature in A03)

You can rename a table in the current database with this
kind of code:

CurrentDb.TableDefs("tblData").Name = "tblData2"
 

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