From the monthly archives:

May 2008

In the previous post. We described the connection to the Microsoft Access database.
Now we will add some functionality to that. The user can insert diferent records.
For start, make a form like this (the names of the components are specified on the picture)

Now in the button1 event method insert this code

string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.mdb;";
OleDbConnection conn [...]

{ View Comments }

The database connection is so easy to do in .Net Framework.
We will use Microsoft Access database for our example, the code will be written in C#.Net.
For start create one Microsoft Access database (db.mdb), and create a table (Info) with the folowing columns

ID (AutoNumber)
FirstName (Text)
LastName (Text)

Then in button event (it’s described here), add [...]

{ View Comments }

    About the Author

  • author photo

    My Name is Shabbir Bhimani and I am developer by profession in the field of applications, web and database. Currently doing full time online marketing and like to share my experiences on how you can make money online @ CodeItWell.com. Read more ...


    See how you can get in touch with me.