I would like to delete tables using code where part of the table names have a certain value.
So the table have as their first 13 characters the following string
tbl_req_tmp_a..
I would like code to iterate through the tables collection and delete all tables that have this as the first 13 characters of their name..not sure of the exact syntax (e.g. is it tabledef or tabledefs), but something like:
dim tbl as tabledef(s)
for each tbl in tabledef(s)
where left(tblname,13) = 'tbl_req_tmp_a"
docmd.deleteobject actTable, tbl
next tbl
Thanks for any assistance..
So the table have as their first 13 characters the following string
tbl_req_tmp_a..
I would like code to iterate through the tables collection and delete all tables that have this as the first 13 characters of their name..not sure of the exact syntax (e.g. is it tabledef or tabledefs), but something like:
dim tbl as tabledef(s)
for each tbl in tabledef(s)
where left(tblname,13) = 'tbl_req_tmp_a"
docmd.deleteobject actTable, tbl
next tbl
Thanks for any assistance..