Formatting a value correctly from an excel linked worksheet column

Access 2010 query
Linked excel worksheet

The field/column in question is a field formatted in EXCEL as number and looks like this   24.9406175771971


I have an append query currently that is taking the number and turning it into :  2494.06%
TARGET_GP_I: Format([TARGET_GP],"Percent")

The field I'm appending to is a text field(by someone elses design)
After importing the data i need the number to look like  "Percent"  2 decimals    24.94
I have tried:
TARGET_GP_I: Format([TARGET_GP],"Percent")*0.01

but it will not work?

Thanks
fordraiders
LVL 3
FordraidersAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

PatHartmanCommented:
It won't work because when you Format() a number, you convert it to a string and therefore you cannot multiply a string.  Of course, knowing what the error message would be useful.

TARGET_GP_I: Format([TARGET_GP] *0.01,"Percent")
FordraidersAuthor Commented:
Pat, Just asking because this seemed to work on the surface.
Unless something i can't think of.

TARGET_GP_I: Format([TARGET_GP] ,"Fixed")  ?

Thanks
fordraiders
PatHartmanCommented:
The Fixed format does not include a sign so although it is still a string, it is a string that looks like a number so Access handles it for you.  22.35% is NOT a number because of the % sign.  Only decimal points are considered valid in numeric values.

Format()  --- ALWAYS returns a string so never format a date or a numeric value BEFORE doing your calculations.  Formatting is for display purposes only.

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
FordraidersAuthor Commented:
Thanks Pat !
PatHartmanCommented:
You're welcome :)
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
Microsoft Access

From novice to tech pro — start learning today.