Hey all
I am trying to update a column in a table with this:
SELECT IIf(Len([temp].[Magstripe])>10,Right([temp].[Magstripe],9),Right([temp].[Magstripe],6)) AS Expr1
FROM temp
How would I do this?
I tried:
UPDATE temp SET temp.Magstripe = (SELECT IIf(Len([temp].[Magstripe])>10,Right([temp].[Magstripe],9),Right([temp].[Magstripe],6)) AS Expr1
FROM temp)
but I get the following error:
"Operation must use an updateable query"
Any suggestions would be highly appreciated.
Many thanks,
Rupa
I am trying to update a column in a table with this:
SELECT IIf(Len([temp].[Magstripe])>10,Right([temp].[Magstripe],9),Right([temp].[Magstripe],6)) AS Expr1
FROM temp
How would I do this?
I tried:
UPDATE temp SET temp.Magstripe = (SELECT IIf(Len([temp].[Magstripe])>10,Right([temp].[Magstripe],9),Right([temp].[Magstripe],6)) AS Expr1
FROM temp)
but I get the following error:
"Operation must use an updateable query"
Any suggestions would be highly appreciated.
Many thanks,
Rupa