Click here to Skip to main content
15,298,794 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all.
I have aproblem with visual studio 2008. I'm making a program that works with database (access 2007) and it does not work corectly. The problem I have is that it must to connect with database everytime before I save something. If I built the program and run it, no errors apper but it doesn't save anything in db. Can I make my program to be connected with database always???

Please help me, I need a solution. :(( :(( :((
Posted

Emirian Jaku wrote:
The problem I have is that it must to connect with database everytime before I save something.

Why?
Can't you just open a connection, say, at program start and close it at program end?

There are a lot of available tutorials about VB.NET and MS Access, see, for instance [^].

:)
   
v2
Comments
Emirian Jaku 25-May-10 7:57am
   
How can i do that??
Johnny J. 25-May-10 8:28am
   
Check the link that was supplied in the answer - click the [^]
you need to do some research on your own.

Start with:

Overview of ADO.NET[^]

Then try here:

Using a DataSet with Existing Data[^]

specifically look at the link titled: "Updating the Database with a DataAdapter and the DataSet"
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900