Results 1 to 2 of 2
  1. #1
    FrankJr is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    1

    Unable to form in Access 2010, but works in 2007.

    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

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What line does the debugger stop on?

    What is UpdateJobNow?

    Why do you need the GoToPage method?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-15-2012, 03:42 PM
  2. Replies: 6
    Last Post: 02-18-2012, 07:20 AM
  3. Unable to close Excel from Access 2007
    By Phred in forum Programming
    Replies: 4
    Last Post: 01-14-2012, 01:58 PM
  4. Replies: 2
    Last Post: 01-05-2012, 11:52 AM
  5. MS Access 2007 vs 2010
    By ralphjramirez in forum Access
    Replies: 2
    Last Post: 05-06-2010, 06:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums