This is going to be a little more trivial than the title makes it out to be, but im hoping someone can help..
What i need to to do in essence is this...Look through all tables that have a name beginning with "441-" and if a criteria matches a field in there delete that table, then look through the rest.
Notr sure where to start as im not very proficient with loops
What i need to to do in essence is this...Look through all tables that have a name beginning with "441-" and if a criteria matches a field in there delete that table, then look through the rest.
Notr sure where to start as im not very proficient with loops
Code:
dim name1 as string
For each Table in MsysObjects
If [Name] = "441-*" then
name1 = [Name]
nz(dlookup("field", name1))
if name1 >= 2 then
DoCmd.DeleteObject acTable, name1
end if
end if
next