473,796 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Object was saved in invalid format"

doma23
107 New Member
I have a big problem.
I was working on a new application with lot of fields.
After I defined all the fields (my hands still hurt) I saved the database. After that, I've added a command button on a main form and used save icon for it.
After I tried to open it in Access 2003 nothing happened. No error messages, I just wasn't able to open the form.
When I tried to the same on my laptop using Access 2007 I got this message:

Run-time Error '6037':
"This object was saved in an invalid format and cannot be read."

Please help, I was working on this whole morning, and it's was the most boring job regarding application. I really don't want to do it again.
Sep 8 '10 #1
5 10695
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
As I understand it you can access the database but not the form?

Have you tried to (in this order):
1) Open it in design view?
2) Restarting your computer?
3) Make a backup copy, then try to do a "compact and repair".
4) Recompile the database.


Regarding 4:
Close access
Select Start->Run and type:
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile
You may need switch the Office11 with something else depending on your version of access.
Open VBA (Alt-F11), select Debug->Compile
Sep 8 '10 #2
doma23
107 New Member
Correct, I can access the database but not the form.
I have 2 forms, one of them works fine, the second I cannot open.

1) Yes. It just won't open.
2) Yes. It doesn't help. I've even tried to open the form on another computer with Access 2007.
3) I've tried. Form still won't open.

4) I've tried. Compilation process pointed to all the code that was somehow connected with the form that doesn't want to open (frmMain). Like it doesn't recognize it. I've put that code in comments. It also pointed to the code inside the frmMain. When I put that code in comments there was the same message "This object was saved in an invalid format and cannot be read". The thing is that I have the code backuped, I only need the design of the form. And I cannot open it.
Sep 8 '10 #3
doma23
107 New Member
Btw. Like you've mentioned, I think that switching off references could be helpful. I've tried but didn't notice difference. Some of the references I cannot deselect as they are being in use, the message says.
Sep 8 '10 #4
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I don't recall having encountered that specific error, so don't really know what to say at this point. The only thing more I can think is to create a new blank database, and see if you can import the form into that database, and then open the form in your new database. Other then that, I only see a redesign.
Sep 8 '10 #5
doma23
107 New Member
I've tried to export the form also, and unfortunately, I get the same error message.
Sep 8 '10 #6

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

Similar topics

7
3420
by: (Pete Cresswell) | last post by:
We were testing a version of our app that's been running for months with no problems and it started throwing "Object no longer exists" messages on two machines in the test environment. We tried the same test scenario on a production box: no problems. Tried them on my developer box: no problems. In each of those two cases, the PC's were connected to the same test server and *supposedly* had the same production build image on them. ...
0
1826
by: Richard Arthur | last post by:
I periodically get an "Object in use elsewhere" exception in my code while using Bitmaps. I am curious to find out if I lock on a bitmap, will that remove this problem, or will I have to lock on the Bitmap before drawing it on a canvas somewhere. I find that this error usually happens if I have a bitmap, set it to the background of a form or control, and then I continue to use the Bitmap (e.g. get the bitmap's size, or extract...
1
6894
by: JohnZing | last post by:
i tried to install asp.net forums all went ok, but after login i always get "Object moved to here." in firefox or "The page cannot be displayed" in IE when i hit refresh, the page loads fine. the problem occurs only when i try to run the application hosted in my hosting provider, not in my local IIS server. any ideas?
1
2440
by: dan | last post by:
I am using VB.NET 2003 and SQL Server 2000. My program inserts new rows in a SQL table based on data read from a file. I generated the commands and the stored procedures with the DataAdapter wizard. The execution of the Insert Command throws the exception: "Object must implement IConvertible. " 1. What object does it refer to? The Command itself? 2. On the other hand, in the VS Help file all IConvertible members have this warning:...
3
2635
by: dan | last post by:
I am using VB.NET 2003 and SQL Server 2000. My program inserts new rows in a SQL table based on data read from a file. I generated the commands and the stored procedures with the DataAdapter wizard. The execution of the Insert Command throws the exception: "Object must implement IConvertible. " 1. What object does it refer to? The Command itself? 2. On the other hand, in the VS Help file all IConvertible members have this warning:...
1
2511
by: DaveO. | last post by:
Hello, I'm calling a VB.NET web service, also from VB.NET, and I get the error " Object reference not set to an instance of an object" on the following line in Reference.vb, when it tries to make the call: Dim results() As Object = Me.Invoke("Phys_Post", New Object() {SessionID, a, b, c, d, CountList}) I can call other web services I've written just fine. This one is more
10
4382
by: desperateloser | last post by:
1st - This is likely pathetically simple and not at all what this site is for, being mostly a snafu using regular Acess stuff and not at all coding or scripting. Please be merciful - I'm really very desperate. I'm trying to use Access 2002 to set up a simple mailing database, then make labels using it. I created the database with all the fields and entered the data, saved it, and have tried to use the Label Wizard several times to no avail...
0
2215
by: =?Utf-8?B?SkhhbGV5?= | last post by:
Our system is: IIS Server: dual Intel Xeon 2.80 GHz, 4 GB Ram Windows Server 2003 SP2 IIS 6.0 SQL Server: dual Intel Xeon 2.80 GHz, 4 GB Ram (separate server) Windows Server 2003 SP2 SQL Server 2000 We are having some problems with a website we are developing, and had some
2
2204
by: Monty | last post by:
I'm installing an ASP.Net 2.0 web applications project (WAP) application on a production server (Win 2003). I've installed it on XP test machines before and it runs fine. On my production machine I get this error (full error screen below) when I attempt to visit the start page. The type ("MyCo.Ing.MyAppRoleProvider") is in my main assembly in the \bin folder. Can anyone tell me what I'm doing wrong or what I should check? TIA. Server...
0
1994
by: dan | last post by:
Hi, I've been using a GridView for some time but this is the first time I need to delete a row in the grid whose primary key consists of 2 fields (table columns). I have a table with primary key set to c1,c2 where c1 is a uniqueidentifier and c2 is int. The DataKeyNames in the gridview is defined as follows: DataKeyNames="c1,c2".
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10455
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10173
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.