Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have found your site brilliant. What makes it good are the people that contribute to the site..."

Geography

Where in the world do Tek-Tips members come from?

Need an update query to reformat/convert data in table

spyder (TechnicalUser)
25 Jan 01 21:34
I need a query to reformat/convert salary data that has been entered as text as 4050092 (which represents $40,500.92) into 40500.92, but keeping it as a text format.  Basically, I need something that would take a cell's data, count over two places from the end (right), and insert a decimal point.  Any suggestions?

--spyder

braindead2 (TechnicalUser)
26 Jan 01 11:21
This should do it
Right([textfield],Len([textfield])-2) & "." & Left([textfield],2)

replace ["textfield"] with your field name
spyder (TechnicalUser)
26 Jan 01 19:26
Nice try, but, unfortunately, it didn't work.  What that query did was take the first two numbers in a field, add them to the end of the field and place a decimal point before them (e.g. 12345678 became 345678.12)

If you have any other ideas, throw them my way.  I have a query that does the job right now...however, I have to run it twice and modify it in between each run.  That's not as efficient as I want to be.

braindead2 (TechnicalUser)
27 Jan 01 8:51
Sorry not sure what I was thinking at the time. Just reverse the left and right functions.
Left([textfield],Len([textfield])-2) & "." & Right([textfield],2)

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close