We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Selecting an item from database to add to a ListBox

Ok I have a project and I pretty much have no idea what I'm doing. Our project is to make some simplified POS software, in our case, for a restaurant. The form I am currently working on is where you pick food items and add them to a listbox which will essentially be the order form. I made a database in Access that has food-item info and linked it to the VB project.

[IMG=http://img812.imageshack.us/img812/1971/image1af.th.jpg][/IMG]

My combobox narrows down the food items according to what category is selected, i.e. "Lunch".

Now.. is there any way I can select an item from my database records (right box) and add them to an empty listbox that I'll save to a txt file. The database box is called "FoodItemsDataGridView" but maybe I don't even refer to that, I have no idea..

1
Contributor
1
Reply
1 Hour
Discussion Span
1 Year Ago
Last Updated
2
Views
lp10731
Newbie Poster
2 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Ok, I exed that idea. Now I'm just using listboxes, two of which are bound to the database.
Here's what it looks like:

[IMG]http://img851.imageshack.us/img851/246/image1xj.jpg[/IMG]


So now what I want is the 2nd to the left box (with the dollar amounts) to be added into the Total textbox. I can't seem to find a code that just adds the values in the listbox. Is this only possible for individual textboxes?

lp10731
Newbie Poster
2 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0571 seconds using 2.66MB