473,386 Members | 1,745 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,386 software developers and data experts.

Save and Edit data from Listview to MS Access

newbiefyke
Expand|Select|Wrap|Line Numbers
  1. Public Class Form3
  2.  
  3.     Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         lv1.Columns.Add("name", CInt(lv1.Width / 3))
  5.         lv1.Columns.Add("age", CInt(lv1.Width / 3))
  6.         lv1.Columns.Add("color", CInt(lv1.Width / 3))
  7.     End Sub
  8.  
  9.     Private Sub add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles add.Click
  10.         Call AppendItemtolistview(TextBox1.Text, TextBox2.Text, TextBox3.Text)
  11.     End Sub
  12.  
  13.     Private Sub AppendItemtolistview(ByVal name As String, ByVal age As String, ByVal color As String)
  14.         Dim newitem As New ListViewItem(name)
  15.         newitem.SubItems.Add(age)
  16.         newitem.SubItems.Add(color)
  17.  
  18.         lv1.Items.Insert(0, newitem)
  19.     End Sub
  20.  
  21. End Class
This is my code to add data in List view.

Q. how can I save it to MS access?
Can I edit the data in any row?
Attached Images
File Type: jpg 1.jpg (36.1 KB, 61 views)
Mar 13 '14 #1
0 923

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

Similar topics

7
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data,...
9
by: tomblower | last post by:
Access 2000 fully updated Three PCs manage data held on a server. They each have a front-end mdb file linked to tables on the server and on each PC. A problem has arisen over the following line...
2
by: Jason Huang | last post by:
Hi, Is there an eazy way to modify a ListView so that we can edit it on the run time? Thanks for help. Jason
1
by: Jason Huang | last post by:
Hi, In my C# windows form project, I have a ListView mylvw. I set the property LabelEdit to true, and I can edit the Item in the mylvw. But what I want to do is not just edit the ListView Item,...
1
by: ortega.rad | last post by:
I have a form which allows you to select a record. That record has other records asscociated with it via a table. The asscociated records of the record selected on the main form are shown in a...
1
by: Stephen Lynch | last post by:
What is the best way to insure that an edit table fields are saved on an exit. For example, I have an edit panel on a page. I do not want to post back on every field, but if an end user goes to...
1
by: Mohsin | last post by:
Hi, any one can help me to save visual Basic Data in Access to link through Data control or ODBC. when i am trying to save vb data in Access after making link through data control it is not saving...
0
by: =?Utf-8?B?QkFUT04=?= | last post by:
I have realy big problem I try lot of things but never success! I need a HELP! Problem is in that I made database in Microsoft access and connect her to C# form and datagridview. and it...
5
by: MeeMee | last post by:
Hi I have a problem with saving form data to a MS Access database. I am using Windows XP, FrontPage 2003, Access 2003, IIS 5.1 and FrontPage Server Extensions. I have followed several tutorials...
0
by: RoxyBeginner | last post by:
I created a form with a switchboard where the user click on one of the buttons. When the form load i want the user to be able to add and edit data by clicking the appropriate button. When I click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.