View Full Version : Including the value in a text box in a calculation


wildexodus
03-11-2003, 06:37 AM
I want to use the value in a text box in a calculation for a Select Case statement in VBA. The code i am trying to use is:

Case "-----"
Text75 = (cboQuantity)*(cboUnitPrice)*(txtWidth)

The calculation works untill i put the txtwidth on the end. Have i missed something out?

Harry
03-11-2003, 07:04 AM
shot in the dark try Val(txtWidth)