Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code fails after upgrading to Office 2007

I'm getting "Can't find project or module" and the word dbUseJet is
highlighted when attempting to run code in a spreadsheet that worked fine
with Office 2003.

Here is the code


Dim wrkJet As DAO.Workspace
Dim dbsMktStats As DAO.Database

Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)


The code, when it worked, then went on to open a database and run some
queries.
I have not upgraded the DB to access 2007, but since the failure is on the
CreatedWorkspace command, I didn't think it was important (at least, not yet)

In Tools...References, I used to have "Microsoft DAO 3.6 Object Library"
checked, but someone suggested I uncheck this and check "Microsoft Access
12.0 Access database engine Object Lilbrary", so I tried that, still no good.
I also added (again, in "references") "Microsoft Access 12.0 Object
Library", but I get the same error every time.

Any suggestions would be appreciated.

David Jenkins
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
File Move-Drag and Drop Fails in Office 2007 Excel & Word Cole Excel Discussion (Misc queries) 0 March 19th 10 09:32 PM
upgrading to office 2007 Rainest Excel Worksheet Functions 2 November 27th 09 06:07 PM
Excel in Office 2007 fails to start ... Arif[_2_] Setting up and Configuration of Excel 1 June 17th 08 09:51 AM
Excel in office 2007 fails to start.. HELP pls Arif[_2_] Setting up and Configuration of Excel 1 June 17th 08 09:50 AM
Any problem of migration for upgrading Office 2007 from Office 200 Eric Excel Discussion (Misc queries) 3 September 6th 07 04:22 PM


All times are GMT +1. The time now is 08:03 AM.

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"