Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please anybody help me,
I am Developing one VB.NET App in VS2010.
I connect my Form to Access Database and show the data. But i need to write the data to respective fields in Access Table.
Posted

Try the following link :

Insert, Update, Delete & Search Values in MS Access 2003 with VB.NET 2005

To display data in DataGridView :
VB
Dim objda = New OleDbDataAdapter
Dim objdataset As DataSet = New DataSet
Dim dv As DataView
objda.SelectCommand = New OleDbCommand
OpenConnection()
objda.SelectCommand.CommandText = "Select * FROM TableName"
objda.Fill(objdataset, "TableName")
dv = New DataView(objdataset.Tables("TableName"))
DataGridView1.DataSource = dv

It will help you :)
 
Share this answer
 
v2
Comments
Himachandra 29-Nov-11 0:02am    
Thank's a lot the link you provided is very use full.
And now i need to display the MsAccess data in Grid view in Form from code how?... Please help me.........
Manoj K Bhoir 29-Nov-11 0:32am    
Please check out the updated solution!
You need to write a suitable Insert method in SQL. I am afraid my answer is a little vague because your question is really vague. If you update your question with how you are retrieving the data from access and showing it, then I can update my answer to be more specific.
 
Share this answer
 
Comments
Himachandra 28-Nov-11 7:04am    
With DataGrid i Display the Data in VB Form
Wayne Gaylard 28-Nov-11 7:27am    
How do you get the data into the datagrid. Do you use a dataset, a datatable, are you using a bindingsource ?
Himachandra 28-Nov-11 23:17pm    
I am Using DataSet property

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