Help with Remove Button on Restaurant Menu

tLeG#77

New Member
Joined
Apr 25, 2011
Messages
1
I am currently working on a restaurant project where if a user selects the specific index of an item the price comes up on the screen. I am having issues with working on the remove button. It removes the items but when there are no items left to select, the subtotal for all orders does not display the correct price. Below is the code I am currently working on. If anyone can help, I would greatly appreciate it.


<!-- BEGIN TEMPLATE: bbcode_code -->
Code:
<STYLE>.alt2 font {font: 11px monospace !important;color: #333 !important;}</STYLE>

If lstCurrentOrder.ListIndex = -1 Then
MsgBox ("There isn't anything selected/left to remove")
Else Dim index_list As Double index_list = (lstCurrentOrder.ListIndex)
dordercost = dordercost - adCosts(index_list)
lstCurrentOrder.RemoveItem index_list
lstCurrentOrderCost.RemoveItem index_list
boxOrderTotal.Text = Str(dordercost)
End If
</PRE>
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top