Change format of Data.

  • Thread starter Thread starter boomtap via AccessMonster.com
  • Start date Start date
B

boomtap via AccessMonster.com

I have about 12000 records that need to be changed from the format:
830 to 8-3
2710 to 27-1
Is there a command I could use to do that?
Thanks,
MIke
 
[XX] is your field. I am assuming that you want to drop the right most
character and insert a dash between the left digits and penultimate character.
Left([XX],Len([XX])-2) & "-" & Left(Right([XX],2),1)
 
I don't understand. You have a field with an entry of "830" and you want
that to turn into "8-3"?

You also have an entry of "2710" that you want to turn into "27-1"?

I don't see the pattern here. Are you simply dropping any zeros, then
inserting a dash before the last digit? Is this a text field or a number
field? Do you want the new value to replace what is currently in the table,
or are you simply trying to output this in a query or a report?
 
That worked amazingly well - I can't thank you enough.

KARL said:
[XX] is your field. I am assuming that you want to drop the right most
character and insert a dash between the left digits and penultimate character.
Left([XX],Len([XX])-2) & "-" & Left(Right([XX],2),1)
I have about 12000 records that need to be changed from the format:
830 to 8-3
2710 to 27-1
Is there a command I could use to do that?
Thanks,
MIke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top