Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > Mysterious 3420...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 92474 of 97476
Post > Topic >>

Mysterious 3420 error

by =?Utf-8?B?VGltIEpvaG5zb24=?= <TimJohnson@[EMAIL PROTECTED] Aug 6, 2008 at 02:54 PM

Hi there, 

I consider myself fairly experienced with MS Access (I'm no MVP, but I can

definitely find my way around most scenarios); but this one leaves my jaw 
dropped and my brain befuddled.

Any idea why Access 2003 would throw a 3420 error (object invalid or no 
longer set) with the following code:

Sub Test()
Dim tdf As TableDef

Set tdf = CurrentDb.TableDefs("Table1")

Debug.Print tdf.Name
End Sub

?

Seems pretty simple to me: 1.) Declare variable, 2.) Set object variable, 
3.) Print object name, but it throws an error.

I have thus far taken the following courses to identify the source of the 
problem, in this order:

Operating under the assumption that this could be because of a corrupt 
database, or an invalid declaration in another module, I quickly put this 
code into a brand new mdb file (as well as the table) and it STILL throws
the 
error.

Tried using Option Explicit instead of Option Compare Database

I've checked the VBA references and can verify the following *seem* to be 
intact:

Visual Basic for Apps, Microsoft Access 11.0 Object Library, OLE
Automation, 
Microsoft DAO 3.6 Object Library, and Microsoft ActiveX Data Objects 2.5 
Library

In the Add or Remove Programs section of the Control Panel, I have opted
to 
"Repair Office", as well as using the "Change" button to remove and then
add 
the Access feature.


I haven't been able to find useful information on google regarding this 
specific scenario; so any help is GREATLY appreciated.

Thanks in Advance,
Tim
 




 6 Posts in Topic:
Mysterious 3420 error
=?Utf-8?B?VGltIEpvaG5zb24  2008-08-06 14:54:02 
Re: Mysterious 3420 error
"James A. Fortune&qu  2008-08-06 18:27:17 
Re: Mysterious 3420 error
=?Utf-8?B?VGltIEpvaG5zb24  2008-08-06 18:13:01 
Re: Mysterious 3420 error
"Brent Spaulding \(d  2008-08-06 23:17:01 
Re: Mysterious 3420 error
=?Utf-8?B?VGltIEpvaG5zb24  2008-08-07 13:34:01 
Re: Mysterious 3420 error
"James A. Fortune&qu  2008-08-07 18:16:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:36:54 CST 2008.