dz2k7
Not only User
- Local time
- Today, 07:38
- Joined
- Apr 19, 2007
- Messages
- 104
VBA and table design
Hi,
I just need a general idea how to manage table design with VBA modual in Access.
I want to be able to add columns, rename columns or delete columns of some table in Access using some automated procedure.
Basically i need to keep historical data and idea is to drop oldest column in a table, add new column, fill it up with the data, and rename all columns, so i would have rolling table.
I found
docmd.RunCommand acCmdRenameColumn
But i don't know how to use it right, how to tell it about the column names i wanna operate. And it tells me something like "the table is unavaliable now". Can't find a proper help too.
Thanks
Hi,
I just need a general idea how to manage table design with VBA modual in Access.
I want to be able to add columns, rename columns or delete columns of some table in Access using some automated procedure.
Basically i need to keep historical data and idea is to drop oldest column in a table, add new column, fill it up with the data, and rename all columns, so i would have rolling table.
I found
docmd.RunCommand acCmdRenameColumn
But i don't know how to use it right, how to tell it about the column names i wanna operate. And it tells me something like "the table is unavaliable now". Can't find a proper help too.
Thanks
Last edited: