Microsoft
Software
Hardware
Network
Question : Replace string in Access Table
Some values in a column of my table end with 'CR'.
For example
1550.84CR
For each of these values, I would like to change the string to begin with a hyphen, and drop the CR.
for exampole
-1550.84
I would also like to then convert this column from TEXT to CURRENCY.
Answer : Replace string in Access Table
In the table create a field with datatype currency. Then:
UPDATE tblValues SET fldCurrency=IIf(Right(fldT
ext,2)="CR
",-Val(fld
Text),Val(
fldText))
Of course use your real table and field names.
Random Solutions
SQL Query: How to sum the result of two queries?
Understanding the behaviour of waitpid(-1, NULL, WNOHANG)
Copying a file and adding the date to the copied file using a batch script
sending a file as attachment using UNIX mail/mailx command
How to convert to byte[]
Access Denied to network shares and offline files whilst synchronization is active
Issue with Excel Macro not running on any machine but one
how to set a page as a START page in worpress instead of comments ?
Entourage 2004 Connection to Exchange 2007
router reset