Thread: food menu
View Single Post
Old 10-23-2013, 11:24 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440

You were given more than enough information in this thread to solve your problem.
It is not our job to write your code for you.

Remove: Dim declblSubtotal As Integer (From each button_click code event)
Add: one copy of it before all of your button_click events. (See Post #4 defining A)

Change: declblSubtotal = Val(<Label>.Text) * n
declblSubtotal += Val(<Label>.Text) * n (In each button_click event)

Notice the += operator in the corrected code. += adds a value to the existing variable value
Burn the land and boil the sea
You can't take the sky from me

Reply With Quote