472,378 Members | 1,251 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

Access 2007 file not accessible

I am trying to write an application using VS 2005 that accesses an Access
database. Unfortunately, VS 2005 doesn't seem to understand the new Access
2007 file extention. Can VS 2005 use the new Access 2007 file format?
--
-----------
Thanks,
Steve
Apr 28 '07 #1
4 5557
I was able to get the Database to be seen by VS2005, but have now run into
another road block. Can someone help me?!!

Here is the situtaion.

I am trying to write a small application that accesses data within an Access
2007 database file with an extention .ACCDB file. I am running Vista on my
computer and using Visual Studio 2005. I am having major difficulty
connecting to the database and actually reading data from it.

The default setting in the app.config file for the connectionstring created
by VS2005 is connectionstring="DSN=MS Access Database” and
providerName="System.Data.Odbc". This value does not work. It generates the
error: {"ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed"}.

I did some investigation and then tried connectionString="driver={Microsoft
Access Driver (*.accdb)};DBQ=GrammarData.ACCDB". This string generated the
error: “ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified”

Both errors occur when the following code is run when the form is loading:
“this.conceptsTableAdapter.Fill(this.grammarData Set.Concepts”.

Does anyone have an example of how to load and read an Access database with
an extension of .ACCDB correctly?

--
-----------
Thanks,
Steve
"SteveT" wrote:
I am trying to write an application using VS 2005 that accesses an Access
database. Unfortunately, VS 2005 doesn't seem to understand the new Access
2007 file extention. Can VS 2005 use the new Access 2007 file format?
--
-----------
Thanks,
Steve
Apr 30 '07 #2
Hi Steve,

From your description, you're encountering some problem about accessing
Office Access 2007 Accdb file in your .net application,correct?

As for your development (windows Vista box), is office 2007 also installed
on that box together with Visual Studio 2005? Based on my research,
accessing office 2007 data files as database require some new driver
components, and the error info you provided also indicate that the driver
is not correctly located. You can find the driver components here:

#2007 Office System Driver: Data Connectivity Components
http://www.microsoft.com/downloads/d...536-8C28-4598-
9B72-EF94E038C891&displaylang=en

And the below web forum thread also discuss on the same question, you can
have a look also:

#How to access the Access 2007 database in VS2005?
http://forums.microsoft.com/MSDN/Sho...48592&SiteID=1

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

May 1 '07 #3
Thank you! This did indeed get me access to it.
--
-----------
Thanks,
Steve
"Steven Cheng[MSFT]" wrote:
Hi Steve,

From your description, you're encountering some problem about accessing
Office Access 2007 Accdb file in your .net application,correct?

As for your development (windows Vista box), is office 2007 also installed
on that box together with Visual Studio 2005? Based on my research,
accessing office 2007 data files as database require some new driver
components, and the error info you provided also indicate that the driver
is not correctly located. You can find the driver components here:

#2007 Office System Driver: Data Connectivity Components
http://www.microsoft.com/downloads/d...536-8C28-4598-
9B72-EF94E038C891&displaylang=en

And the below web forum thread also discuss on the same question, you can
have a look also:

#How to access the Access 2007 database in VS2005?
http://forums.microsoft.com/MSDN/Sho...48592&SiteID=1

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

May 1 '07 #4
You're welcome :)

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

May 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday,...
1
by: cpajoe2001 | last post by:
I am having an issue and after searching around online for a day and half now and finding others with the same problem but yet no solution to my issue I am looking for help. What i have is ServerA...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
2
by: Sid | last post by:
I hope somebody could help me with this. I have a access database which includes some forms, queries and tables. Once I upload it on to the office network, I was hoping if I could set up...
0
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows...
5
by: ISUTri | last post by:
We are currently converting from Access 2003 to Access 2007. I have an Access app that is going to be very difficult to convert. This App is used by people that are out in the field and are a...
5
by: WPW07 | last post by:
Hello, We have several complex applications developed in Access 2003 by various outside consultants. These applications link to a variety of Oracle tables and are used only for Access reports. ...
2
by: Terry Chapman | last post by:
I have a 2003 Access .mda add-in which I can sign using my Thawte digital certificate. I am now migrating this add-in to Access 2007 and when I try to add my Thawte digital signature Access 2007...
5
by: novak | last post by:
hi list, since a couple of weeks we face a special "security" problem. neraly every ms-access database that is located on our net-drives cannot be opened. when clicking the document's icon,...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.