|
-
Oct 1st, 2000, 03:07 AM
#1
Thread Starter
Junior Member
Hello...
The user is shopping for a computer...
After having several items in the listbox, user decided not to include the Zip Drive.
Form1: Has all the combo boxes; listboxes and checkboxes
Form2: is the receipt where it shows all the selected items and the prices for each selection, except for the
lstComponents (a listbox populated from checkbox selection) which will only show a subtotal for all the addidtional components (zipDrive, DVD, modem, cdrom,etc...)
I tried using the code below for deleting a previously selected item (checked from the checkbox and was then
additem into the listbox).
Here's my code in Form1:
Private Sub chkZipDrive_Click()
If frmComputerSales.chkZipDrive.Value = 1 Then
frmReceipt.lstComponents.AddItem "Zip Drive"
booZipDrive = True
intzipdrive = consZipDrive
Else
booZipDrive = False
intzipdrive = 0
frmReceipt.lstComponents.clear 'tried this one and it obviously cleared the whole listbox... I only wanted to clear the "Zip Drive" if it is unchecked by user...
End If
End Sub
Thanks,
Eena

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|