Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Service Offices

Help please! Visual Basic 6.0?


Lions, Tigers, and Bears pet clinic is impressed with your previous work for them and have hired you for another small project. The vet assistants would like an application that displays basic services. The application should be designed with check boxes to select the various such as office calls, vaccinations grooming, hospitalization, heartworm preventative....etc. After all the selections have been made,t he charges should be added together to arrive at a total amt. due and siplayed when a CommandButton control is clicked. if the patient's owner thinks the total is too high, a way to clear the CheckBox controls, the corresponding service chargest, and the total amt. to begin selecting again should be avail.

This is what I have so far:

Command1.Caption = (Val(Check1.Value) + Val(Check2.Value))

If Check1.Value = 1 Then lblAmtdue.Caption = 50
If Check2.Value = 1 Then lblAmtdue.Caption = 100
......etc.
lblAmtdue.Caption = ""

What code should I use? Please help!!!

Command1.Caption is the text on the button named Command1, not values from the program. It should tell the user what happens when s/he clicks it - like Add, Enter, Quit.

If Check1 is a check box, the value is either vbChecked or vbUnchecked, not the value in some other control.

You should use VB's constants wherever possible:

If Check1.Value = vbChecked Then

Add the values up - If Check1 is checked, it's 50, if Check2 is checked it's 100, but if both are checked it should be 150, right? With your code it will be 100.

Then, after you get all the values, you wipe them out with

lblAmtdue.Caption = ""

Tags
  Meeting Room   Meeting Space   Conference Room   Offices to Lease   Rent Offices   Business Centers   Service Offices   Branch Offices   Temporary Offices   Shared Offices   Commercial Space   Office Space
Related information
  • [Six Flags Interview] What will they ask?

    Yes, I would think so. Every employer is going to want to sit down and have a face to face with you. Not only does it give them an opportunity to meet you but it helps makes sure your eager enoug...

  • Are you required to buy a PO Box?

    Ever since I was a child, it was understood that PO Boxes are rented. I have never heard of them being free. As far as no mail being delivered to residential boxes, I think that is cheesy as all g...

  • We can buy a flat in Frontline Builders?

    so whats your question?

    ...
  • Why is it that Pres Bush is seen a bad with the military when Clinton had more military deaths in his term?

    Urban legend Total military deaths under each of the two administrations are as follows: Bill Clinton (1993 - 2000) ............. 7,500 deaths George W. Bush (2001 - 2006) .... 8,7...

  • Oxy Morons List Them !!?

    here you go...... Slight case of pregnancy

    ...
  • Winning prize (Greetings to you from the MSN LOTTERY BOARD UK.), what i do?

    Trash the mail. Scam !

    ...
  • Child support court order?

    Just getting started. Assuming they actually locate her, you'll be headed for a hearing and a determination and if she is found to owe, about another 90 days out from there you should see cash...

  • Are my closing costs to high in San Antonio, TX?

    YES this is WAY TOO high!!!! The origination is average, but you should not have to pay 2% in discount points - period! The tax relation service is a joke - we only charge $59!!!!! Seriously, th...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster