Yussi Ariefiyono
display list of table from other database with DAO
this function will display list of table from other database, it come handy if you want to make a tool for inventory of all your db
Sub displayTable()Dim dbs As DatabaseDim otable As DAO.TableDefDim ItemName As StringSet dbs = OpenDatabase(“Db Name”)For Each otable In dbs.TableDefsIf UCase(Left(otable.Name, 3)) <> “MSY” ThenItemName = otable.NameItemName = Replace(ItemName, “,”, “–”)debug.print ItemNameItemName = “”End IfNext otableSet otable = NothingSet dbs = NothingEnd Sub
| Print article | This entry was posted by yussi ariefiyono on April 8, 2010 at 7:20 am, and is filed under vba. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |