1.11M Members

Selecting an item from database to add to a ListBox

 
0
 

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..

 
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?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: