My database was working fine before an access back-end was created. I was able to click buttons on the form that took me to other forms. Now after the database was split, when I click the buttons, I get an "Invalid Operation".
Here is the code behind the button. Does something need to be changed when making a backend?
Here is the code behind the button. Does something need to be changed when making a backend?

Code:
Private Sub Operating_Click()
On Error GoTo Err_Operating_Click
Dim MyDB As Database, Mytable As DAO.Recordset, x As String
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set Mytable = MyDB.OpenRecordset("Vehicle Operating Data", DB_OPEN_TABLE)
Mytable.Index = "VIN"
DoCmd.DoMenuItem A_FORMBAR, A_FILE, A_SAVERECORD, , A_MENU_VER20
Mytable.Seek "=", Forms![Vehicle Profile]![VIN]
If Mytable.NoMatch Then
Mytable.AddNew
Mytable("VIN") = Forms![Vehicle Profile]![VIN]
Mytable.Update
LinkCriteria = "[VIN] = Forms![Vehicle Profile]![VIN]"
DoCmd.Openform "Vehicle Operating Data", , , LinkCriteria
DoCmd.GoToControl "[Date]"
Else
LinkCriteria = "[VIN] = Forms![Vehicle Profile]![VIN]"
DoCmd.Openform "Vehicle Operating Data", , , LinkCriteria
DoCmd.GoToControl "[Date]"
End If
Exit_Operating_Click:
Exit Sub
Err_Operating_Click:
MsgBox Error$
Resume Exit_Operating_Click
End Sub