Just tried to run the button. Tables still linked. The way thsi is I cannot do a simple copy and paste so here is some of what i wrote.
Code:
Dim sDBUnlinkName
Dim db as DAO.Database
Dim app as Object
Dim tdf as DAO.TableDef
sDBUnlinkName = sDBUnlinkFolder & sDBFile & " " & sDateFormat & "_unlinked" "." sDBFileExt
set app = CreateObject("Access.Application")
set db = app.DBEngine.OpenDatabase(sDBUnlinkName)
For Each tdf in db.TableDefs
with tdf
If InStr(.Connect, "ACEWSS") > 0 Then
app.DoCmd.Select acTable, .Name, True
app.DoCmd.RunCommand acCmdConvertToLocalTable
End If
End with
Last edited: