Oct 17, 2002 #1 sabavno Programmer Jul 25, 2002 381 CA Hi I am wondering if I could rename the table using vba code... Thanks
Oct 17, 2002 #2 jane30 Programmer Nov 14, 2000 92 US absolutely. here is an example from Access97 help: DoCmd.Rename "Old Employees Table", acTable, "Employees" Upvote 0 Downvote
absolutely. here is an example from Access97 help: DoCmd.Rename "Old Employees Table", acTable, "Employees"
Oct 18, 2002 #3 Aivars Programmer May 4, 2001 687 LV Hi! Here's code for DAO: dim dbs as database dim tdf as tabledef set dbs=currentdb set tdf=currentdb.tabledefs("MyTableName" tdf.name="NewNameOfMyTable" dbs.close set dbs=nothing Aivars Upvote 0 Downvote
Hi! Here's code for DAO: dim dbs as database dim tdf as tabledef set dbs=currentdb set tdf=currentdb.tabledefs("MyTableName" tdf.name="NewNameOfMyTable" dbs.close set dbs=nothing Aivars