I would like to add data to a database using text Boxes and l should be able to retrieve that data into a datagrid
So far l have managed to create a connection between a datagrid and the data base but am failling to have that connection between the text boxes and the database.
So far this is the scenerio:
l have an
OleDbConnection
an OleDbDataAdapte r
a dataset named DsSession
an Access database named Try and its location is C:\try\try.mdb
a table named Session
in the table l have the following fields:
Computer Number
Start time
Amount Per second
End time
Total amount Total time
On the form l have the following text boxes that corresponds to respective columns of the database
txtComputerNumb er
txtStart
txtAmount
txtEndTime
txttime
so l would like using these textBoxes to add data in the database in their respective columns..
please help
So far l have managed to create a connection between a datagrid and the data base but am failling to have that connection between the text boxes and the database.
So far this is the scenerio:
l have an
OleDbConnection
an OleDbDataAdapte r
a dataset named DsSession
an Access database named Try and its location is C:\try\try.mdb
a table named Session
in the table l have the following fields:
Computer Number
Start time
Amount Per second
End time
Total amount Total time
On the form l have the following text boxes that corresponds to respective columns of the database
txtComputerNumb er
txtStart
txtAmount
txtEndTime
txttime
so l would like using these textBoxes to add data in the database in their respective columns..
please help
Comment