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

Home Posts Topics Members FAQ

Method 'Form' of object '_SubForm' failed

This has really been my day for wierd problems sorting one of my forms (a
subform actually)... so here's another one.

I am now receiving the following error

Run-time error '-2146500594 (800f000e)':

Method 'Form' of object '_SubForm' failed

The code breaks on the first line of the following section of code:

With Forms!frmInventory![Auto Parts].Form
.OrderBy = "fldPartInvNo"
.OrderByOn = True
End With

Now...the wierd part is that this code was working perfectly for the last
several days until tonight. This code runs EVERY time the main form loads
and I have never received any error message until now.

I read a few posts in other forums and got the impression that reinstalling
Access might be the best thing to do - so I did that. No good. Then I ran
the application on another computer and got the same error there.

Now I'm stumped. Has anyone else experienced this and found a solution?

Thanks!
Todd


Nov 13 '05 #1
2 10308
Hi Todd

The message suggests that your database is partially corrupt.

Decompiling might fix it, or follow these steps to rebuild it:
1. Create a new (blank) database.

2. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
(This 'feature' is a cause of many problems.)

3. Import everything from the broken database:
File | Get External | Import

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Todd" <to****************@SPAMNOpenland.net> wrote in message
news:oz***************@fe25.usenetserver.com...
This has really been my day for wierd problems sorting one of my forms (a
subform actually)... so here's another one.

I am now receiving the following error

Run-time error '-2146500594 (800f000e)':

Method 'Form' of object '_SubForm' failed

The code breaks on the first line of the following section of code:

With Forms!frmInventory![Auto Parts].Form
.OrderBy = "fldPartInvNo"
.OrderByOn = True
End With

Now...the wierd part is that this code was working perfectly for the last
several days until tonight. This code runs EVERY time the main form loads
and I have never received any error message until now.

I read a few posts in other forums and got the impression that
reinstalling
Access might be the best thing to do - so I did that. No good. Then I
ran
the application on another computer and got the same error there.

Now I'm stumped. Has anyone else experienced this and found a solution?

Thanks!
Todd

Nov 13 '05 #2
Decompile (using the /decompile command line option on MSACCESS.EXE)
and Re-compile. You may just be seeing a code loading failure.

(david)

"Todd" <to****************@SPAMNOpenland.net> wrote in message
news:oz***************@fe25.usenetserver.com...
This has really been my day for wierd problems sorting one of my forms (a
subform actually)... so here's another one.

I am now receiving the following error

Run-time error '-2146500594 (800f000e)':

Method 'Form' of object '_SubForm' failed

The code breaks on the first line of the following section of code:

With Forms!frmInventory![Auto Parts].Form
.OrderBy = "fldPartInvNo"
.OrderByOn = True
End With

Now...the wierd part is that this code was working perfectly for the last
several days until tonight. This code runs EVERY time the main form loads
and I have never received any error message until now.

I read a few posts in other forums and got the impression that reinstalling Access might be the best thing to do - so I did that. No good. Then I ran the application on another computer and got the same error there.

Now I'm stumped. Has anyone else experienced this and found a solution?

Thanks!
Todd

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1277
by: Bill Clark | last post by:
I just had MS Access 97 loaded on my machine. When I try to use the Chart Wizard, I get an error stating: Method 'Form' of object '_Subform' failed Any thoughts? Is there something that...
1
4832
by: boxim | last post by:
hi all, I'm having a few problems whereby my application is hanging when using the Invoke method of a form's control. Basically, when a user clicks a button on the form, it calls a remote...
3
2213
by: BakelNB | last post by:
I am new to the .Net environment, so please bear with me. I am passing a form object (e.g. formA) to an existing form (e.g. formB) by setting a property value defined in formB to hold the formA...
2
4715
by: Lauren Wilson | last post by:
Hi folks, I have an Access 2003 app that works perfectly on my computer. However, when we install it on OTHER computers that ALSO have access 2003 we get an error on startup: Error:...
2
6036
by: Reginald Bal | last post by:
Hello, I created a main form with 2 subforms. In an attempt to move to the next record (or new record) on the main form I get the error " Method 'requery' of object '_Subform' failed". The...
0
1357
by: mse07 | last post by:
hi for every one i using program for send e-mail and i use 'IDHTMLEdit' to load text file with message but after i load file and run program ,compiler show following messagebox: ...
4
15464
by: ielamrani | last post by:
Hi, I am getting this error when I try to export to an excel sheet. When I click on a button to export the first time it's fine, I rename the exported excel sheet and I try to export it again and I...
0
1235
by: kaushalgajjar | last post by:
Hi, I had created an active-x control (ocx) in vb6 and i have used in VB.Net and HTML using ClassId reference and the active-x was working fine with ASP.Net, HTML and VB6. Now the active-x is...
0
1766
by: calimerotuttonero73 | last post by:
hi, this is the problem : "-2146500594 (800f000e) : method 'form' of object 'subFom' failed " it is displayed when i try to use a Access file. The file was created using ACCESS 2003 ITA and...
0
7233
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,...
0
7135
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
7342
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
7410
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...
0
7505
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...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
440
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.