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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unrecognized Data Format - Get this error...

Status
Not open for further replies.

dfarland

Technical User
May 9, 2003
16
0
0
US
Get this error when I run this code.
What is up?

Sub GetTable2()
Dim rs As Recordset
Set rs = DBEngine.OpenDatabase("C:\Sales\StoreDB.mdb").OpenRecordset("Objects")
Range("A1").CopyFromRecordset (rs)

End Sub
 
It's probably a W2K or XP database and you're still using an older DAO provider.

Check in Tools | References to make sure you're using DAO 3.6


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top