Here's the code for the button that opens another form. It has been working fine in 2007, but since installing 2010, it gives me an error stating "Invalid Database Object Reference". Any advice/tips on this would be greatly appreciated. Thanks in advance.
Private Sub btn_Locations_Click()
On Error GoTo Err_btn_Locations_Click
Forms!job.GoToPage 1
UpdateJobNow
DoCmd.OpenForm "Location"
Me.Visible = False
Exit_btn_Locations_Click:
Exit Sub
Err_btn_Locations_Click:
MsgBox Error$
Resume Exit_btn_Locations_Click
End Sub