G
Guest
Hello everyone, I am trying to alter the value of a field where, due to my
own errors in the input field, users have been able to input incorrect values
into a table. The cell is called flats and is supposed to have values as
follows:
0016
However i had allowed (& ive fixed the problem since) inputs such as 016 or
even 16 to be placed into the table, as different people have different
styles inconsistencies have developed and there are 1300 such corrupted
results. I had figured on using an Update Query to amend the existing
results, this is what i was thinking along the lines off.
UPDATE Students SET Students.flat = IIF(Len([students].[flat]<> 4) ,
[students].[flat] = "0" & [students].[flat], [students].[flat] =
[students].[flat])
I cant seem to find the documentation on the IIF expression, it seems to
come up with examples from which i've deduced its workings, though this
solution doesnt work.
Thanks in advance
Amit
own errors in the input field, users have been able to input incorrect values
into a table. The cell is called flats and is supposed to have values as
follows:
0016
However i had allowed (& ive fixed the problem since) inputs such as 016 or
even 16 to be placed into the table, as different people have different
styles inconsistencies have developed and there are 1300 such corrupted
results. I had figured on using an Update Query to amend the existing
results, this is what i was thinking along the lines off.
UPDATE Students SET Students.flat = IIF(Len([students].[flat]<> 4) ,
[students].[flat] = "0" & [students].[flat], [students].[flat] =
[students].[flat])
I cant seem to find the documentation on the IIF expression, it seems to
come up with examples from which i've deduced its workings, though this
solution doesnt work.
Thanks in advance
Amit