Getting a error in that it can NOT LOCK FILE on the Set MyDB= line.

' Check to see if this is from scratch
Set MyDB = Dbe.Workspaces(0).OpenDatabase("tabsproddatabaseed garSecuritysecurity.mdb")
Set Rst = MyDB.OpenRecordset("task")