Question about adding fields together

I have a report where I am trying to add fields together. Problem is when I put [On hand FG] + [QTY_S] into my report instead of adding the fields together it is just putting the  field numbers together.

For example
On Hand    QTY_S     Total
     6                0           60  
     1              50         150

Any idea why that could be happening?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
make sure that the fields data type are set to number not Text

clng( [On hand FG] ) + clng( [QTY_S] )

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HOTWATTAuthor Commented:
clng( [On hand FG] ) + clng( [QTY_S] ) is what fixed it for me. Can you explain what clng does? Just so I know how to use it next time. Thanks again for all the help!!
Dale FyeOwner, Developing Solutions LLCCommented:
Well, if those fields are going to contain numeric data, they should be defined as numbers, not as text values.

clng( ) is one of about a dozen conversion functions which allow you to convert values of one data type to another.  In this case, it appears they are converting text values to numbers, but if those fields are defined as text, then a user could enter "a" in a textbox, and the clng( ) function will raise an error.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.