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

Negative in the wrong place

Status
Not open for further replies.

lakers8175

IS-IT--Management
Sep 18, 2001
67
US
I have a table where the "-" sign is to the right od the number. I need to move the negative over to the left of the number, so I can make it a numberic field and do calculations. I would like to do it in a query, if it can't be done, then whatever works best.


Please Help
 
This query ought to do the trick:
[tt]
UPDATE YourTable
SET TextField = '-' & Left(TextField,Len(TextField)-1)
WHERE Right(TextField,1) = '-'
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top