?
Solved

The object doesn't contain the automation object 'Form'

Posted on 2011-03-04
10
Medium Priority
?
827 Views
Last Modified: 2012-05-11
When I open the database I get the error listed above.  I've tried some of the suggestions in posts similar to this one but nothing has worked so far.  Does anyone have any ideas?
0
Comment
Question by:fabi2004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35037850
it would be difficult to tell without seeing the db..

upload a .mdb version of the db
0
 
LVL 1

Author Comment

by:fabi2004
ID: 35037924
it's an accdb, hope that's alright, it's based off the Contacts template
Contacts.accdb
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35037977
create a blank .mdb
import the objects from the .accdb

upload the .mdb
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 1

Author Comment

by:fabi2004
ID: 35038013
but some of the features won't work in an .mdb
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35038050
then wait for somebody who is using A2007 now.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 35039144
Your Auto Exec macro is extremely complex. Macros are *very* difficult to trobleshoot.  There are several places where you have
IF [Form].[Dirty] = True then SaveRecord.

I suspect one of these is causing the issue ... because that form may not be open.  You need to Comment out these one at a time (a suggestion) and see which one causes the error.

That is my best guess ...

mx
0
 
LVL 1

Author Comment

by:fabi2004
ID: 35040198
Thank you for your help.  I appreciate you looking at that.  Someone else suggested I just exclude that AutoExec macro and the db seems to run fine without it.
0
 
LVL 75
ID: 35040226
Well ... there you go.  I don't remember seeing an Auto Exec macro that complex in recent history.  Normally, there are just a couple of lines ...

mx
0
 
LVL 1

Author Comment

by:fabi2004
ID: 35040267
I used the MS "Contacts" template provided for A2010 and modified it to better suit.  I'm sure I broke several things along the way and then I had to deal with version issues.  But it's all good now.  Finally.  :-)  In any case, that AutoExec Macro came with the template.  

Thanks again. I apprecciate you looking at it.
0
 
LVL 75
ID: 35040306
With the new macro editor - which I am totally not used to ... it's a lot harder for me to figure out what the macro is doing - especially in this case.  Of course, I don't use macros in general, except for a one link Auto Exec macro that call a Function to do what ever startup I need ... and the AutoKeys macro.

At least I have a good example of a complex macro - should I want to see how the editor works lol.

thx.mx
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question