Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export from excel to Access

I have ste up code to export excel data to a table in access 2007. It works
in Access 2003 but not 2007. The following extract fails with the message
"Run-Time Error '3343'. Unrecognized database format "C:\Documents and
Settings\Peter\My Documents\NEMS\Databases\Backends\NEMS Members_be.accdb"

Dim db As Database, rs As Recordset, r As Long

Set db = OpenDatabase("C:\Documents and Settings\Peter\My
Documents\NEMS\Databases\Backends\NEMS Members_be.accdb")

It seems that DAO and access 2007 don't mix!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Export from excel to Access

Access is no tbackwards compatable. Usually when you install a newer version
of access you have to upgrade the database to work. I would go into your
excel VBA menu tools - References and use these two version of the libraries

1) Micorsoft Access 11.0 object library
2) Microsoft ActiveX Data Objects 2.8 library

These libraries are the standsrd ones I use with Excel 2003. I don't know
what 2007 uses.

"GreatCrosby" wrote:

I have ste up code to export excel data to a table in access 2007. It works
in Access 2003 but not 2007. The following extract fails with the message
"Run-Time Error '3343'. Unrecognized database format "C:\Documents and
Settings\Peter\My Documents\NEMS\Databases\Backends\NEMS Members_be.accdb"

Dim db As Database, rs As Recordset, r As Long

Set db = OpenDatabase("C:\Documents and Settings\Peter\My
Documents\NEMS\Databases\Backends\NEMS Members_be.accdb")

It seems that DAO and access 2007 don't mix!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Export from excel to Access

I think you can find pretty much whatever you want right he
http://www.accessmvp.com/KDSnell/EXCEL_ImpExp.htm

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"joel" wrote:

Access is no tbackwards compatable. Usually when you install a newer version
of access you have to upgrade the database to work. I would go into your
excel VBA menu tools - References and use these two version of the libraries

1) Micorsoft Access 11.0 object library
2) Microsoft ActiveX Data Objects 2.8 library

These libraries are the standsrd ones I use with Excel 2003. I don't know
what 2007 uses.

"GreatCrosby" wrote:

I have ste up code to export excel data to a table in access 2007. It works
in Access 2003 but not 2007. The following extract fails with the message
"Run-Time Error '3343'. Unrecognized database format "C:\Documents and
Settings\Peter\My Documents\NEMS\Databases\Backends\NEMS Members_be.accdb"

Dim db As Database, rs As Recordset, r As Long

Set db = OpenDatabase("C:\Documents and Settings\Peter\My
Documents\NEMS\Databases\Backends\NEMS Members_be.accdb")

It seems that DAO and access 2007 don't mix!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export from excel to Access



Did you ever get an answer for this? I am having the same problem and
can not figure it out.

*** Sent via Developersdex http://www.developersdex.com ***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel export to Access MarcoR Excel Programming 5 May 17th 06 01:12 AM
Export to Access from Excel Secret Squirrel Excel Discussion (Misc queries) 0 February 7th 06 11:44 PM
Export from Access to Excel tamxwell Excel Programming 9 June 30th 05 08:31 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Export from Access to Excel Sabina Excel Discussion (Misc queries) 3 February 23rd 05 09:56 PM


All times are GMT +1. The time now is 05:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"