cboTreatments-(holds treatment and price)
User can select up to 4 treatments and prices.
How can I code so that when the first treatment & price are selected they only populate the 1st lbltreatment and txtprice and then allow me to select a 2nd treatment which populates the 2nd lbltreatment & txtprice etc. Here my code so far.
Private Sub cboTreatment_Click()
Dim TreatmanetDetails As String
TreatmentDetails = cboTreatment.Text
lblTreat1 = Left(TreatmentDetails, 40)
txtCost1 = Right(TreatmentDetails, 6)
lblTreat2 = Left(TreatmentDetails, 40)
txtCost2 = Right(TreatmentDetails, 6)
lblTreat3 = Left(TreatmentDetails, 40)
txtCost3 = Right(TreatmentDetails, 6)
lblTreat4 = Left(TreatmentDetails, 40)
txtCost4 = Right(TreatmentDetails, 6)
txtGross.Text = Val(txtCost1) + (txtCost2) + (txtCost3) + (txtCost4)
End Sub
Thanks in anticipation
Rosi
