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
File Replication Solution for an Offsite File Server
How to pass multiple openargs
How to use VBA to add a calendar entry to a shared calendar
ERROR: the text, netext, and image data types are invalid in this subquery or aggregate expression
problem using ioctl , CDROM_DRIVE_STATUS
MSDE Installlation
Exchange POP collector not delivering messages to mailbox
Printing a Cover Sheet with Every Print Job
Authenticating a linux workstation user to a linux server
T-SQL - Insert Column If True