Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open acess from excel (Office2003)

Status
Not open for further replies.

alpder

Technical User
Sep 22, 2002
103
AU
I have been using Office97 but have just upgraded to 2003 and converted my Access databases. I used to be able to open Access databases from Excel using:

Dim DB As Database
Set DB = OpenDatabase("P:\Factory\Rejects.mdb")

This no longer works (Runtime Error 3343. Unrecognisable data format)

Does anyone have any idea why this is happening?
 


Hi,

Have you set a reference to either ADO or DAO Object Library?

Skip,
[sub]
[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue][/sub]
 
No I have not referenced ADO or DAO Object library.

Which one should I use and can you point me to some information on the 2 systems?

Many thanks

alpder
 


Go to Tools/References and see what library is checked but no longer has a valid reference.

Skip,
[sub]
[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top