I'm not sure when you are trying to total so here are two possible ways.
Create a variable named Total
Dim Total as Double
To keep a running total as things are entered...
After adding the info to the listboxes...
QuantityList.Items.Add(quantity)
MenuitemList.Items.Add(item)
PriceList.Items.Add(price)
Total += quantity * price
To total everything in the listboxes...
For x = 0 To PriceList.Items.Count - 1
Total += Val(PriceList.Items(x)) * Val(QuantityList.Items(x))
Next
If that doesn't answer your question, please post more details.
Smith5646
Junior Poster in Training
65 posts since Nov 2009
Reputation Points: 34
Solved Threads: 9
Skill Endorsements: 0