Link to home
Start Free TrialLog in
Avatar of Troush2009
Troush2009Flag for United States of America

asked on

Need help with creating a update query

I have below query vbut it is not working.

I am trying to remove "-" and replace it with nothing.
I just want to remove "-"


UPDATE RBS SET RBS.FDN_REMAINDER = "-"
WHERE (((RBS.FDN_REMAINDER)="  "));
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this:

UPDATE RBS SET RBS.FDN_REMAINDER = Replace([FDN_REMAINDER],"-","")
WHERE (((RBS.FDN_REMAINDER)="  "))

mx
Or with Null


UPDATE RBS SET RBS.FDN_REMAINDER = Replace([FDN_REMAINDER],"-",Null)
WHERE (((RBS.FDN_REMAINDER)="  "))
Personally i would use  


UPDATE RBS SET RBS.FDN_REMAINDER = Replace([FDN_REMAINDER],"-",Null)
WHERE (((RBS.FDN_REMAINDER)="  "))

source for help on this
http://www.techonthenet.com/access/functions/string/replace.php
Avatar of Troush2009

ASKER

LOL