I have this query below (and it's working, obviously nothing so complicated)
unfortunately nothing of the 3 works in VBA
Code:
Sub test()
Dim oDB As DAO.Database
Dim oRS As DAO.Recordset
Set oDB = CurrentDb
Set oRS = oDB.OpenRecordset("backup_base_staff", dbOpenDynaset) 'does not work
Set oRS = oDB.OpenRecordset("backup_base_staff", dbOpenTable) 'does not work
Set oRS = oDB.OpenRecordset("backup_base_staff", dbOpenSnapshot) 'does not work
End Sub
and I am getting this same error for all three, what am I doing wrong?