PC Review


Reply
Thread Tools Rate Thread

Access 97 Dim DB error with new copy

 
 
=?Utf-8?B?U2hhcm9uSW5HZW9yZ2lh?=
Guest
Posts: n/a
 
      21st Feb 2006
Why are my database copies not recognizing my "dim dbs as database"? Also,
how can I create a copy of my original database in a different directory as a
brand new database without any shared properties? Access 97




 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      21st Feb 2006
Hello SharonInGeorgia,

You need to set a reference to the "Microsoft DAO 3.51 Object Library". To
do this, open an existing module. Click on Tools > References. Scroll down
the list until you find this reference and place a check in it.

I'm not sure what you mean "...without any shared properties" on your second
question.


Tom in Washington (the real Washington!)

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"SharonInGeorgia" wrote:

Why are my database copies not recognizing my "dim dbs as database"? Also,
how can I create a copy of my original database in a different directory as a
brand new database without any shared properties? Access 97

 
Reply With Quote
 
andy
Guest
Posts: n/a
 
      21st Feb 2006
Tks

"Tom Wickerath" <AOS168b AT comcast DOT net> дÈëÏûÏ¢
news:1DFD5BB6-2B50-4483-BCCD-(E-Mail Removed)...
> Hello SharonInGeorgia,
>
> You need to set a reference to the "Microsoft DAO 3.51 Object Library". To
> do this, open an existing module. Click on Tools > References. Scroll down
> the list until you find this reference and place a check in it.
>
> I'm not sure what you mean "...without any shared properties" on your
> second
> question.
>
>
> Tom in Washington (the real Washington!)
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "SharonInGeorgia" wrote:
>
> Why are my database copies not recognizing my "dim dbs as database"? Also,
> how can I create a copy of my original database in a different directory
> as a
> brand new database without any shared properties? Access 97
>



 
Reply With Quote
 
=?Utf-8?B?U2hhcm9uSW5HZW9yZ2lh?=
Guest
Posts: n/a
 
      22nd Feb 2006
I would appreciate a "logical" answer to this question.

"Tom Wickerath" wrote:

> Hello SharonInGeorgia,
>
> You need to set a reference to the "Microsoft DAO 3.51 Object Library". To
> do this, open an existing module. Click on Tools > References. Scroll down
> the list until you find this reference and place a check in it.
>
> I'm not sure what you mean "...without any shared properties" on your second
> question.
>
>
> Tom in Washington (the real Washington!)
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "SharonInGeorgia" wrote:
>
> Why are my database copies not recognizing my "dim dbs as database"? Also,
> how can I create a copy of my original database in a different directory as a
> brand new database without any shared properties? Access 97
>

 
Reply With Quote
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      22nd Feb 2006
Excuse me? What part of my answer did you not find logical?


Tom

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"SharonInGeorgia" wrote:

> I would appreciate a "logical" answer to this question.

__________________________________________

> "Tom Wickerath" wrote:
>
> > Hello SharonInGeorgia,
> >
> > You need to set a reference to the "Microsoft DAO 3.51 Object Library". To
> > do this, open an existing module. Click on Tools > References. Scroll down
> > the list until you find this reference and place a check in it.
> >
> > I'm not sure what you mean "...without any shared properties" on your second
> > question.
> >
> >
> > Tom in Washington (the real Washington!)
> >
> > http://www.access.qbuilt.com/html/ex...tributors.html
> > http://www.access.qbuilt.com/html/search.html

__________________________________________

> > "SharonInGeorgia" wrote:
> >
> > Why are my database copies not recognizing my "dim dbs as database"? Also,
> > how can I create a copy of my original database in a different directory as a
> > brand new database without any shared properties? Access 97
> >

 
Reply With Quote
 
=?Utf-8?B?U2hhcm9uSW5HZW9yZ2lh?=
Guest
Posts: n/a
 
      23rd Feb 2006
Your explanation on how to resolve this problem is helpful. However, I would
like to know what is happening behind the scenes. Why did my code work fine
in the first database but no longer works in the new copy? What is the
reason for changing the references in the Microsoft DAO 3.51 Object Library?
I've copied many Access Databases in the past but never had the 'dim dbs'
error message before and would like to understand why this error message
appeared.

"Tom Wickerath" wrote:

> Excuse me? What part of my answer did you not find logical?
>
>
> Tom
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "SharonInGeorgia" wrote:
>
> > I would appreciate a "logical" answer to this question.

> __________________________________________
>
> > "Tom Wickerath" wrote:
> >
> > > Hello SharonInGeorgia,
> > >
> > > You need to set a reference to the "Microsoft DAO 3.51 Object Library". To
> > > do this, open an existing module. Click on Tools > References. Scroll down
> > > the list until you find this reference and place a check in it.
> > >
> > > I'm not sure what you mean "...without any shared properties" on your second
> > > question.
> > >
> > >
> > > Tom in Washington (the real Washington!)
> > >
> > > http://www.access.qbuilt.com/html/ex...tributors.html
> > > http://www.access.qbuilt.com/html/search.html

> __________________________________________
>
> > > "SharonInGeorgia" wrote:
> > >
> > > Why are my database copies not recognizing my "dim dbs as database"? Also,
> > > how can I create a copy of my original database in a different directory as a
> > > brand new database without any shared properties? Access 97
> > >

 
Reply With Quote
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      23rd Feb 2006
> Your explanation on how to resolve this problem is helpful.

Thank You. This was not evident from your initial reply.

> However, I would like to know what is happening behind the scenes. Why
> did my code work fine in the first database but no longer works in the new copy?


Is the same PC being used in both cases? If the path to the DAO library is
different on two different computers, this could account for a MISSING
reference error. Sometimes, a reference can even be missing without being
flagged as such. Refreshing the references collection tends to fix that
error. Doug Steele talks about this in his article (see below). Without
having both copies of your database available to look at, it's hard to offer
you any definitive reasons for such an error. Have you read the references
articles by Access MVP's Doug Steele and Allen Browne? If not, I recommend
that you read and bookmark both of these articles:

Solving Problems with Library References (Allen Browne)
http://allenbrowne.com/ser-38.html

Access Reference Problems (Doug Steele)
http://www.accessmvp.com/djsteele/Ac...nceErrors.html


> What is the reason for changing the references in the Microsoft DAO 3.51 Object Library?


What changed, exactly? Are you seeing a MISSING reference error? Other
possibilities include misspelling "Database" in code or perhaps having a
declaration line that is outside a procedure, but not within the Declarations
section of the module.

You indicated Access 97. While you did not indicate a later version of
Access, I can tell you that if you attempted to import all objects from your
JET 3.5 database (Access 97) into a JET 4.0 database (Access 2000 or later)
that you can expect to receive this error if using either Access 2000 or
2002. You will not receive this error if using Access 2003, because all new
databases in Access 2003 include a reference to the DAO library by default.
The same is not true of new databases created with either Access 2000 or 2002.

Finally, it is possible that some action, such as uninstalling a software
app., caused the DAO object library to become unregistered.

Tom

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"SharonInGeorgia" wrote:

Your explanation on how to resolve this problem is helpful. However, I would
like to know what is happening behind the scenes. Why did my code work fine
in the first database but no longer works in the new copy? What is the
reason for changing the references in the Microsoft DAO 3.51 Object Library?
I've copied many Access Databases in the past but never had the 'dim dbs'
error message before and would like to understand why this error message
appeared.

 
Reply With Quote
 
=?Utf-8?B?U2hhcm9uSW5HZW9yZ2lh?=
Guest
Posts: n/a
 
      24th Feb 2006
Your explanation below answered the WHY. I inherited this Access application
from a previous developer and copied the database from the company's shared
drive. So, yes, the application was written on a different machine. In
addition, the database's creator imports and links files that were place on
HER C drive. It's been an interesting and challenging project for me.

Thanks for your explanation and reference resources.. Sharon


"Tom Wickerath" wrote:

> > Your explanation on how to resolve this problem is helpful.

>
> Thank You. This was not evident from your initial reply.
>
> > However, I would like to know what is happening behind the scenes. Why
> > did my code work fine in the first database but no longer works in the new copy?

>
> Is the same PC being used in both cases? If the path to the DAO library is
> different on two different computers, this could account for a MISSING
> reference error. Sometimes, a reference can even be missing without being
> flagged as such. Refreshing the references collection tends to fix that
> error. Doug Steele talks about this in his article (see below). Without
> having both copies of your database available to look at, it's hard to offer
> you any definitive reasons for such an error. Have you read the references
> articles by Access MVP's Doug Steele and Allen Browne? If not, I recommend
> that you read and bookmark both of these articles:
>
> Solving Problems with Library References (Allen Browne)
> http://allenbrowne.com/ser-38.html
>
> Access Reference Problems (Doug Steele)
> http://www.accessmvp.com/djsteele/Ac...nceErrors.html
>
>
> > What is the reason for changing the references in the Microsoft DAO 3.51 Object Library?

>
> What changed, exactly? Are you seeing a MISSING reference error? Other
> possibilities include misspelling "Database" in code or perhaps having a
> declaration line that is outside a procedure, but not within the Declarations
> section of the module.
>
> You indicated Access 97. While you did not indicate a later version of
> Access, I can tell you that if you attempted to import all objects from your
> JET 3.5 database (Access 97) into a JET 4.0 database (Access 2000 or later)
> that you can expect to receive this error if using either Access 2000 or
> 2002. You will not receive this error if using Access 2003, because all new
> databases in Access 2003 include a reference to the DAO library by default.
> The same is not true of new databases created with either Access 2000 or 2002.
>
> Finally, it is possible that some action, such as uninstalling a software
> app., caused the DAO object library to become unregistered.
>
> Tom
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "SharonInGeorgia" wrote:
>
> Your explanation on how to resolve this problem is helpful. However, I would
> like to know what is happening behind the scenes. Why did my code work fine
> in the first database but no longer works in the new copy? What is the
> reason for changing the references in the Microsoft DAO 3.51 Object Library?
> I've copied many Access Databases in the past but never had the 'dim dbs'
> error message before and would like to understand why this error message
> appeared.
>

 
Reply With Quote
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      24th Feb 2006
Hi Sharon,

I'm glad to hear that you got everything working.


Tom

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"SharonInGeorgia" wrote:

Your explanation below answered the WHY. I inherited this Access application
from a previous developer and copied the database from the company's shared
drive. So, yes, the application was written on a different machine. In
addition, the database's creator imports and links files that were place on
HER C drive. It's been an interesting and challenging project for me.

Thanks for your explanation and reference resources.. Sharon
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling - unable to copy/access denied - VS .Net 2005 =?Utf-8?B?R29yZG9u?= Microsoft Dot NET 0 9th Oct 2007 11:06 PM
Can't Copy Form - Get Path/File Access Error =?Utf-8?B?TWlrZUs=?= Microsoft Access Forms 0 23rd Mar 2006 01:59 PM
Access Denied - Cannot Copy File ERROR the Junipers Windows XP Help 1 13th Jan 2005 12:16 PM
Re: Error with copy/paste from Excel 2002 in Access 2002 Table Pane Joe Fallon Microsoft Access External Data 0 12th Jul 2003 05:23 PM
Error with copy/paste from Excel 2002 in Access 2002 Table Pane Richard Microsoft Access 0 11th Jul 2003 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.