ListView Help..

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Sep 2005
Posts: 2
Reputation: bad_robot is an unknown quantity at this point 
Solved Threads: 0
bad_robot's Avatar
bad_robot bad_robot is offline Offline
Newbie Poster

ListView Help..

 
0
  #1
Feb 9th, 2007
Hi i'm new to VB6 and i just wanted to ask how to save the columns in a ListView to an Access DB... The format i use to save individual textbox to an Access DB is....

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1.  
  2. With adorecordset
  3. .Fields!Name = Text1.Text
  4. .Fields!Address = Text2.Text
  5. .Fields!Phone = Text3.Text
  6. End WIth

I just wanted to know how to do somthing like this with a ListView..

Thank You!
Last edited by bad_robot; Feb 9th, 2007 at 8:48 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 2
Reputation: bad_robot is an unknown quantity at this point 
Solved Threads: 0
bad_robot's Avatar
bad_robot bad_robot is offline Offline
Newbie Poster

Re: ListView Help..

 
0
  #2
Feb 10th, 2007
Its me again i figured out how to save a row in a ListView into an ACCESS DB its something like this...

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Command2_Click()
  2. With adoRecordSet
  3. .AddNew
  4. .Fields!Name = itemToAdd.SubItems(1)
  5. .Fields!Address = itemToAdd.SubItems(2)
  6. .Fields!Phone = itemToAdd.SubItems(3)
  7. .Update
  8. End With

...but this only saves the first row.... i want to save all the rows at the same time with just one click of the command button..... Hope someone could help me..... Thanks.... Maraming Salamat :mrgreen:
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 1827 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC