Thanks for the fast answer to my last post Hans. When I change from a jet backend to an SQL backend (or vice versa) is there a fast way to delete the existing table attachments without deleting front end tables? I’ve used to following that looks at the Foreign name to tell if it is an attached table – it seems to work but are there going to be any instances where the foreign field won’t give me what I want?
SQL1 = “SELECT Len([ForeignName]) AS LenFN, MSysObjects.Name ” _
& “FROM MSysObjects WHERE (((Len([ForeignName]))>0));”
Set rstAttachedTables = CurrentDb.OpenRecordset(SQL1, dbOpenSnapshot)
Do Until rstAttachedTables.EOF
strTableName = rstAttachedTables!Name
CurrentDb().TableDefs.Delete strTableName
rstAttachedTables.MoveNext
Loop