Good afternoon,
I was wondering if anyone experienced a similar problem after splitting a database. Prior to creating a front and back end, my code worked perfectly. After splitting, I am generating a compile error, highlighting the line Dim dbs As Database.
The code basically deletes the data in a holding table. Nothing fancy. Just not sure why it stopped working after splitting.
Any suggestions?
I was wondering if anyone experienced a similar problem after splitting a database. Prior to creating a front and back end, my code worked perfectly. After splitting, I am generating a compile error, highlighting the line Dim dbs As Database.
The code basically deletes the data in a holding table. Nothing fancy. Just not sure why it stopped working after splitting.
Any suggestions?
Code:
Private Sub Form_Current()
Dim dbs As Database
Set dbs = CurrentDb
dbs.Execute ("DELETE * FROM tblPropertyDetailsDummy")
Me!From.SetFocus
End Sub