update query for postal code

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

how do I update a mistake in a postal code entry from
TR49D3 to TR4 9D3? I.e. include the missing space?
 
how do I update a mistake in a postal code entry from
TR49D3 to TR4 9D3? I.e. include the missing space?

If the space is ALWAYS to be added after the 3rd character:

Update YourTable Set YourTable.[PostalCode] = Left([PostalCode],3) & "
" & Mid([PostalCode],4);
 
Chris said:
how do I update a mistake in a postal code entry from
TR49D3 to TR4 9D3? I.e. include the missing space?

UPDATE TableName
SET PostalCode = 'TR4 9D3'
WHERE PostalCode = 'TR49D3'
 
Back
Top