D
djf44
When I run this code by opening up a form it works fine. When I run the code
within a Macro it locks up the database when it is done running.
Dim dbs As Database
Dim rec1 As Recordset
Set dbs = CurrentDb
Set rec1 = dbs.OpenRecordset("NewTable")
rec1.MoveFirst
DoCmd.CopyObject , rec1!Field6, acTable, "UnCompressedPlan"
DoCmd.Close acForm, "frmRename"
End Sub
within a Macro it locks up the database when it is done running.
Dim dbs As Database
Dim rec1 As Recordset
Set dbs = CurrentDb
Set rec1 = dbs.OpenRecordset("NewTable")
rec1.MoveFirst
DoCmd.CopyObject , rec1!Field6, acTable, "UnCompressedPlan"
DoCmd.Close acForm, "frmRename"
End Sub