473,508 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting a 3011 error

489 Contributor
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.
Expand|Select|Wrap|Line Numbers
  1. StDocName = “Edit Members”
  2. 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
May 10 '14 #1
5 1867
zmbd
5,501 Recognized Expert Moderator Expert
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.
May 10 '14 #2
jimatqsi
1,271 Recognized Expert Top Contributor
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
May 10 '14 #3
CD Tom
489 Contributor
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.
Expand|Select|Wrap|Line Numbers
  1. stDocName = "Edit Members"
  2. 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
May 10 '14 #4
CD Tom
489 Contributor
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.
May 10 '14 #5
zmbd
5,501 Recognized Expert Moderator Expert
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! (^_^)
May 10 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2518
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
6
3173
by: Erik H. | last post by:
Trying to connect to MySQL db on localhost, and populate datagrid from a dataset using code inline method. Getting the following compile error: Error Message: "CS0246: The type or namespace...
2
1992
by: William Gower | last post by:
I am trying to display a page that has a data grid on it. I get this message Description: An error occurred during the processing of a configuration file required to service this request....
5
3565
by: Pucca | last post by:
I'm trying to pinvoke a function in a C++ dll but I'm getting an error that entry point can not be located from my pinvoke code. Do I need to add any code to the C++ DLL to make the pinvoke? The...
6
1796
by: friend.05 | last post by:
I am able to compile the program, but while building it I am getting following error,can any explain when does this error mean. Command Lines Creating temporary file...
4
2087
by: preeti13 | last post by:
Hi friends i have a probelm i am try to pass the value to the employeeid parameter but getting th error please help me how i can do this i am getting the error here is my code using System;...
5
10011
by: neovantage | last post by:
Hey all, I am using Swift mailer and i am getting error "Fatal error: Uncaught exception 'Swift_RfcComplianceException' with message 'Address in mailbox given does not comply with RFC 2822,...
1
1431
by: bmalex | last post by:
I have a function named "Merge FTP data" and when I point to a .txt file to update the database I get the folloing error msg, MS Access database engine could not find the object file.txt. Make sure...
0
1679
tharini
by: tharini | last post by:
Whenever i run my SMS API code,am getting the error " Bad Request HTTP Error 400.The Request is badly formed". When i store a particular mobile number in database and send sms to that mobile no.,the...
2
3700
by: Brad Nerbovig | last post by:
I am getting this error when connecting to an Excel file from Access 2010. The weird thing is, if I click on okay when the routing fails, and then run it again it works just fine. In fact, if I run...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.