Results 1 to 4 of 4
  1. #1
    catguy is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Location
    Minnesota
    Posts
    20

    I need to remove a dash from a number string.

    New to access and have a problem.
    I have 2 tables of data that I would like to use in a query. The common field in both tables is named "Material" and will be used for a join.
    I believe though, I may have a format issue with the data.


    In table "QM15_Notifications", the Material is a text data type and consists of all numbers (i.e. 3235465) and in the other table "tblQNET_IQA", the Material is also a text data type and consists of numbers seperated with a dash (i.e. 323-5465).
    I have many other tables in this db that do not have the dash in the data for "Material", so how do I remove the dash from tblQNET_IQA?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can use the Replace() function to get rid of the dash, either for display or in an update query to change the actual data.

  3. #3
    catguy is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Location
    Minnesota
    Posts
    20
    Thanks... worked like a charm.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, and welcome to the site by the way.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 PM
  2. Auto Sequence String Serial Number
    By eddyc99 in forum Programming
    Replies: 2
    Last Post: 10-02-2009, 08:11 AM
  3. Remove Filter and GoToRecord
    By ombadboy in forum Programming
    Replies: 0
    Last Post: 09-04-2009, 07:35 AM
  4. Remove contents from each field
    By nancyszn in forum Access
    Replies: 7
    Last Post: 08-06-2009, 03:41 PM
  5. Insert Dash between set of Numbers
    By Jhankish in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 08:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums