I got some kind of weird behavior if I delete table from the below code.
When I save new record, it saves twice the first time. Anyone knows why ? Thanks.
With DoCmd
.SetWarnings False
.RunSQL "Delete * from tblJurCode"
.SetWarnings True
.Rename "tblJurCode_Old", acTable, "tblJurCode"
.CopyObject , "tblJurCode", acTable, "tblJurCode_Old"
.DeleteObject acTable, "tblJurCode_Old"
End With
When I save new record, it saves twice the first time. Anyone knows why ? Thanks.
With DoCmd
.SetWarnings False
.RunSQL "Delete * from tblJurCode"
.SetWarnings True
.Rename "tblJurCode_Old", acTable, "tblJurCode"
.CopyObject , "tblJurCode", acTable, "tblJurCode_Old"
.DeleteObject acTable, "tblJurCode_Old"
End With