Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2007

Tip: Looking for answers? Try searching our database.

conversion & 3420 error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NetworkTrade - 09 Mar 2007 01:59 GMT
have converted an Access97 to Access2003 (in 2000 file format) - much is
working ok but some command buttons are throwing the error:

Error Number 3420 - Object Invalid or no longer set

Have browsed around becoming educated on that....have looked at:
http://allenbrowne.com/ser-48.html#conversion

It isn't opening the VB window & showing me the compile line error - just
that message in an error box....so am wondering if anyone out there has run
up against this specifically and/or whether there is a method to zero in on
the trouble line of code.....

right now I suppose it is the 'OnClick' event code - but as there is alot of
code back there calling functions - including opening another form...it could
be in the open form or subform properties too I suppose....wish one could
focus in more easily on the trouble cause......

advice definitely welcomed...thnx...NTC
Signature

NTC

ruralguy - 09 Mar 2007 12:49 GMT
Unhandled errors can couse this error.  Is your system set to break on
unhandled error?
<ALT> F11 then Tools>Options...>General tab
I sometimes set mine to break on all errors to track down problems.

>have converted an Access97 to Access2003 (in 2000 file format) - much is
>working ok but some command buttons are throwing the error:
[quoted text clipped - 15 lines]
>
>advice definitely welcomed...thnx...NTC

Signature

HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

NetworkTrade - 09 Mar 2007 14:40 GMT
thank you for that - did change to 'all errors' and it now zooms into vb line
error rather than just a general message box....

now my dilemma is why 97 vb code doesn't work in 03 access...  

the line in error is:   rstQuote.AddNew

preceeding it the rstQuote is defined...and then set...without throwing an
error - and so I guess it is the .AddNew isn't valid....

probably the first of quite a few errors I need to correct and wonder what
is the reference to the correct vb...between older and newer versions ??
Signature

NTC

> Unhandled errors can couse this error.  Is your system set to break on
> unhandled error?
[quoted text clipped - 20 lines]
> >
> >advice definitely welcomed...thnx...NTC
Stefan Hoffmann - 09 Mar 2007 14:44 GMT
hi,

> now my dilemma is why 97 vb code doesn't work in 03 access...  
> the line in error is:   rstQuote.AddNew
In Access 2003 there are two libraries providing a recordset class:

  ADODB.Recordset and DAO.Recordset

Add the DAO 3.6 library to your references and change the declarations
of your recordsets to e.g.

  Dim rstQuote As DAO.Recordset

then it should compile without errors.

mfG
--> stefan <--
NetworkTrade - 09 Mar 2007 15:43 GMT
thanks for advice Stefan,......will follow on this....
Signature

NTC

> hi,
>
[quoted text clipped - 13 lines]
> mfG
> --> stefan <--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.