Hello,
I am trying to delete a set of tables using the TableDefs.Delete method. I would like to specify a TableName and have VB search the TableDefs.Name to see if that table exists. If it does, I would like to delete it. If it doesn't exist, I would like to search on the next TableName.
I can get it to work, but only by searching through all TableDefs.Names in the database for each TableName to search for. Is there a way to specify a TableName and then have VB Find the table in the collection? Sort of like the DAO.Recordset.FindFirst Method?
Thanks,
I am trying to delete a set of tables using the TableDefs.Delete method. I would like to specify a TableName and have VB search the TableDefs.Name to see if that table exists. If it does, I would like to delete it. If it doesn't exist, I would like to search on the next TableName.
I can get it to work, but only by searching through all TableDefs.Names in the database for each TableName to search for. Is there a way to specify a TableName and then have VB Find the table in the collection? Sort of like the DAO.Recordset.FindFirst Method?
Thanks,
Last edited: