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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Fields with Text Value 1

Status
Not open for further replies.

math20

MIS
Jul 7, 2005
71
CA
Hi,

I have a query table that holds value in text data type. What I am trying to do is add these values for each staff. For example: Smith sells Oranges, Apple and Bananas the number is stored as text like 01...

Name Orange Apple Banana Total
Smith 01 02

When I try to use the a query Like

Total: [Orange]+[Apple]+[Banana] the result is blank because there is no data for Orange. My query will work only if I have value for all the field. Like:

Name Orange Apple Banana Total
Smith 01 02 03 6

I hope I am making sense. I would really appreciate any help.

Thank you.
 
Total: Val([Orange] & "")+Val([Apple] & "")+Val([Banana] & "")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

Thank you so much. You are indeed a genius.

Thanks a Lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top