Emoncada
09-01-2011, 09:21 AM
I have the following vb Line that is giving me an error when caption is "".
LblPrice.Caption = Format(CDbl(LblPrice1.Caption) + CDbl(LblPrice2.Caption) + CDbl(LblPrice3.Caption), "$#,##0.00")
What do I need to do for it to give me the sum even if 1 or more caption's are "" ?
LblPrice.Caption = Format(CDbl(LblPrice1.Caption) + CDbl(LblPrice2.Caption) + CDbl(LblPrice3.Caption), "$#,##0.00")
What do I need to do for it to give me the sum even if 1 or more caption's are "" ?