Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do add the values in two text boxes.

Status
Not open for further replies.

needadvice

Programmer
Apr 7, 2002
145
US
I have a report that has dollar amounts in 2 text boxes. I'm trying to add the two in a third box.
Control Source =[Text1]+[Text2]. Instead of adding them together it's putting them side by side.
Anyone know why?
 
Try converting each to a numeric field first, i.e. Integer, Double. Can't remember if this will work on text box, but try.

Control Source =Cdbl([Text1])+Cdbl([Text2])

Hope it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top