473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to connect my vb project to microsoft access 2003 database

9
hi ...
i want the solution for this question please help me out.
i have created a database in microsoft access database 2003 .the name of my database is information and i have created a table name employee having field names (employee no,employee name,employee address,emplyee salary) and also records had been entered.
so now i have designed an interface in visual basic with the same field names using labels and also provided textbox for the specified field names
where i can get my output from the connected database .

i have used data control and set its properties like
connect=access
databasename=C:\Program Files\Microsoft Visual Studio\VB98\information.mbd."
but the last thing when i click the recordsource property it says "unrecognized database format'C:\Program Files\Microsoft Visual Studio\VB98\information.mbd."

and when i applied the same process for sample database provided with vb6 then the problem does not exist.

whats the problem why i cant connect to the database i have created ???
please help me
looking forward at nvnrai8@gmail.com
Feb 3 '10 #1
3 4869
vb5prgrmr
305 Expert 100+
That is because MS changes the format of Access's *.mdb files every now and then (nearly every iteration of a new office version...).

See http://www.connectionstrings.com to see the differences between the various versions of the connection strings needed for the various versions of access.

Now, there are a couple of things that you can do to solve this...

One is to use Access 2k3 and save the file in a prior access version. The other is to remove the data control and add the ADODC control while using the information from www.connectionstrings.com to be able to connect.

And finally, just get rid of the control and use code to access the database...

Now, if you don't know how to use code to access the database, then you will need to search for an ADO tutorial with your friends (yahoo, google, ask, answers, bing) or you could use the data form wizard to generate the code for you (found under add-ins>add-in manager). However, since the data form wizard was put out before the 2k3 format, you may have to use the ODBC option. If so, no big deal, use it (after creating one), and then use the information from www.connectionstrings.com...



Good Luck
Feb 3 '10 #2
navda
9
well thanks for answering me back
but it didn't helped me a lot i just want to be clear that is it possible to connect my access database 2003 to vb project using data control .
the other solution you provided me by using adodc control.well i can connect my same database using adodc earlier but i just want to connect through data control also . i can connect excel 2003 database using data control but why not access 2003 database.
if its not possible than what's the code to connect related to data control.
please help me out .........
Feb 4 '10 #3
vb5prgrmr
305 Expert 100+
Your answer lies at connectionstring.com if their is one since the Data1 control is DAO based (if I remember correclty) and since they updated DAO since the Data1 was released, you just may be out of luck...

Do you have the option in the connect property to connect to an access 2003 database?



Good Luck
Feb 4 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Linda Lee | last post by:
I purchased Visual Basic .NET version 2003 Standard I first try to connect Visual Basic .NET 2003 Standard to SQL Server 2000 Personal edition. When I go into Visual Basic .NET under Server...
1
by: beck4353 | last post by:
Hi, I am using VS.NET Arch. and I am having problems connecting to ANY database. I am trying to a either a SqlConnection or OleDBConnection object to my project. When I try to define the...
4
by: Development at American Savings | last post by:
I'm having some trouble being able to connect to my db2 server (it lives on an os/2 warp 3 connect box) from my Windows2000 workstation using vs.net 2003. Any suggestions? I have a local user...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
1
by: Dave | last post by:
I am trying to learn .NET with the standard edition of VC++.NET 2003 Standard edition. When I use the wizard in the toolbox to connect to a non-microsoft ODBC data source, I get the error message...
5
by: Daniel Bass | last post by:
I setup a asp.net project running on http://localhost/ which connects to a database on another server running sqlserver... I was able to connect to the database and create my application no...
7
by: Reza | last post by:
Hello The project was working, where I had a domain user registered in the database as a user, and I used that user to connect the datebase. Everything was fine and it was working, then when I...
2
by: CM Manager via DotNetMonster.com | last post by:
I am very frustrated due to this exception error I am receiving. I've tried searching numerous user support groups, Microsoft Support Net, Google, etc. and haven't found exactly my situation....
1
by: perjorgen | last post by:
Hi, My asp.net can't connect to any sql database when running 1.1 I can connect to databases if I make a windows application and if if I run asp.net 2.0 Other computers have no problem...
4
by: sparks | last post by:
We have a new project here, one that I have never tried maybe its easy I don't know yet. We have people that have records dating back over 5 yrs on a sql server. We have to build an access 2003...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.