Share via

Query to remove spaces in data

Anonymous
2024-05-01T20:44:21+00:00

Hello,

In Access I have table and in the table I have a "Short Text" column.

Below is an example of data in the column but I need to run an update query to remove any spaces before, within and after the data.

Could you help me create an update query to do this?

cf4872ab

cf4872wg

cf6259nx

CF4089sK

CF 4380 AW

CF 4380 PW

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-05-01T20:53:38+00:00

UPDATE [TableName] SET [FieldName]=Replace([FieldName]," ","")

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-05-01T20:56:54+00:00

    UPDATE YourTable SET YourField = Replace(YourField, " ", ""}

    Was this answer helpful?

    0 comments No comments