1 Replies - 375 Views - Last Post: 22 January 2013 - 08:07 AM Rate Topic: -----

#1 jumba  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-January 13

database

Posted 22 January 2013 - 03:08 AM

how to save all items and sub items of a listview into an ms aceess database using vb.net 20008 please help me guys

please help me out ...im just stuck wanted to save the items so that i can create a receip of the items sold
Is This A Good Question/Topic? 0
  • +

Replies To: database

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: database

Posted 22 January 2013 - 08:07 AM

Without seeing any code, I would say that you could loop through the listitems and with each iteration of the loop save the .SubItem(index) using the iterator variable from the loop as the index number to it's appropriate field in the database.

Building the sql statement with parameters that point to these subitems should take not more than 4 or 5 lines of code (plus the assignment of the values to the parameters)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1