getting a 3011 error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CD Tom
    Contributor
    • Feb 2009
    • 495

    getting a 3011 error

    This has been driving me nuts. I'm working on a friends new computer with Windows 7, she has a data base for a membership system written in Access. I have the same system on my machine. We are running Office professional 2007. I run the membership system on my machine and it works fine. When I run it on her system I get the error 3011 it happens on a DoCmd.openform command.

    The Microsoft Office Access Database engine could not fine the object “1”. Make sure the object exists and that you spell its name and the path name correctly.
    Code:
    StDocName = “Edit Members”
    DoCmd.openform stDocName, acNormal, acedit
    It looks like it doesn't like the Acedit, when I look at it there is a 1 there. I've check the references and everything is the same as my machine. I've checked the trust center to make sure everything there is correct and it is.

    Any help would be appreciated as I've been trying different things all afternoon with no luck.

    The only difference is she has a 64Bit machine and my is a 32. I don't think that should make a difference.

    My machine is running Windows 8.

    I just tried running the office 2007 updates from the MS website tried the Office suite service pack 2 and it failed also service pack 3 and it failed.
    I'm at a loss.

    Thanks for any help
    Tom
    Last edited by zmbd; May 10 '14, 04:08 PM. Reason: [z{placed required code tags}]
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    Please show us the full code and indicate the line of the error.

    Please use the [CODE/] button to format posted script and formated text by placing the text between the [CODE] [/CODE] code tags

    also, Please post the EXACT title, number, and text of the error message. Please do not alter, omit, nor abbreviate the information provided in the error message

    You also need to double check that the install versions of Office are correct, look in the "about" in the help... they should both be 32-Bit installs under Office 2007; however, strange things happen.
    Last edited by zmbd; May 10 '14, 01:50 AM.

    Comment

    • jimatqsi
      Moderator Top Contributor
      • Oct 2006
      • 1293

      #3
      Are you saying it failed to install those service pack, or the problem continues after installing those service packs?

      Can you make any edits to the database? I'm wondering if it's a problem during some code in the load or open events that's making the form fail to load.

      Have you enabled macros?

      Jim

      Comment

      • CD Tom
        Contributor
        • Feb 2009
        • 495

        #4
        Ok, zmbd sorry I didn't think the two lines of code needed to be with the code/. Here's the error message and code

        Run time error “3011”

        The Microsoft Office Access Database engine could not fine the object “1”. Make sure the object exists and that you spell its name and the path name correctly.
        Code:
        stDocName = "Edit Members"
        Docmd.OpenForm stDocName AcNormal, AcEdit
        To answer Jim Yes I tried to install the service packs for Office 2007 and they both failed. Not sure about the macros, When I run the code it stops on the Docmd statement everything works fine up to that point. I don't understand where the '1' comes from in the error message (see message above), I see that when I put the mouse on the AcEdit it shows as a 1, If I take the AcEdit out of the statement the docmd will open the form.
        What happens is a when she selects to edit a member a form comes up that she can lookup the members name she then selects the name and that's when she gets the error trying to open the edit members form.
        I hope this explains a little better.
        Thanks again for your help

        Comment

        • CD Tom
          Contributor
          • Feb 2009
          • 495

          #5
          Ok, you can stop looking I logged on to her computer this morning and tried the membership again and it worked. The only thing I can think of is there was 59 windows updates that I ran on her computer and then restarted it last night.
          Sorry of having you guys look into this when the problem looks like it was a Windows.

          Comment

          • zmbd
            Recognized Expert Moderator Expert
            • Mar 2012
            • 5501

            #6
            was 59 windows updates that I ran on her computer and then restarted it last night.
            WOW

            I was going to tell you to do a cold-boot on the PC; however, the kids started having a melt-down between the four of them and it seems you beat me to it before I could get back to press enter! (^_^)

            Comment

            Working...