Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8964109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:30:43+00:00 2026-06-15T16:30:43+00:00

I have a column with a 7 digit number. When the data was imported

  • 0

I have a column with a 7 digit number. When the data was imported there were 3 blank spaces imported behind each number. I have tried several different versions of Trim() in an update/select query with no luck. I am using Access 2007.

Below are the different things I have tried:

Select Query

Expr1: Trim([Number])
Expr1: RTrim([Number])

and Update Query

UPDATE Table SET [Number] = Replace([Number], " ", "");

http://office.microsoft.com/en-us/access-help/remove-spaces-from-the-beginning-and-end-of-a-text-value-HP001099033.aspx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:30:44+00:00Added an answer on June 15, 2026 at 4:30 pm

    Although I can’t see why those efforts failed, I’ll suggest you try this UPDATE statement.

    UPDATE [Table] SET [Number] = RTrim([Number])
    

    If that does not remove the trailing spaces, what does happen when you try it? Is there an error message? Do you perhaps have SetWarnings turned off, which can suppress error messages?

    Also check whether those field values include characters which aren’t visible and could interfere with trimming the spaces. For example, you can check the ASCII value of the last character in each field like this:

    SELECT Asc(Right([Number], 1)) AS ascii_value
    FROM [Table];
    

    A space character is ASCII 32.

    Finally, if those suggestions don’t lead you to a solution, check to confirm the field contains what you expect.

    SELECT [Number]
    FROM [Table]
    WHERE [Number] ALike '%   ';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data column that contains a substring similar to this: 'This is
I have a column varchar[25] with this data inside : 886,-886 -886 0,-1234 1234
i'm reading file which has some number of columns each line has different number
I have a table with column node_id as number, where, node_id 0 2000 300300300
I have column in a postgresql database. They are lottery numbers. Four digits in
I have a table with a column 'A'. Some rows have 14 digits for
I have column named summary (tinytext, utf8_turkish_ci). I know it can store 255 byte
I have column with varchar values like 022008 that I need to convert into
I have column where i save timestamp of records and I wants to delete
In database table I have column called options . It has type of integer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.