Results 1 to 4 of 4
  1. #1
    Dick60 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    6

    how can I get a selction where the source is a combi of letters and numbers

    Hi, I have a table (named 1) with a combi of letters and numbers (project 1000, project 1002) ect. this data is added by human and imported from another application.


    I have also a table (named table 2) with a source with correct numers (only numbers). I want to compare table 2 with the table 1 data and that is shows all records in table 1 that do not match table 2 and place the results in a new table that has to be generated (table 3).

    Extra info, the field is a txt field in both tables!

    Hope someone can help me

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, in table 1, you need to separate the number from the letters in order to link in to table 2 to do your check. Is that right?

    If so, you can do that in a query. You can use a myriad of text functions in order to do that. If you need help with that part, please list all the different "structures" we that may exist (i.e. is there always one word and then one number, or are there other possibilities)?

    Once you have done that, you can use use this query in a new query with table 2 doing an unmatched query to find the unmatched records. Access even has an Unmatched Query Wizard to walk you through the process.

    If you would like to write the results to a new or existing table, you would use an Action Query in order to do so (a Make-Table or Append Query).

  3. #3
    Dick60 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    6
    This is right I am only interested in the last 4 numbers. The only structure in use is:
    project 1234 (the word Project+space)

    Quote Originally Posted by JoeM View Post
    So, in table 1, you need to separate the number from the letters in order to link in to table 2 to do your check. Is that right?

    Can you help me with the myriad of text function option?


    If so, you can do that in a query. You can use a myriad of text functions in order to do that. If you need help with that part, please list all the different "structures" we that may exist (i.e. is there always one word and then one number, or are there other possibilities)?


    Once you have done that, you can use use this query in a new query with table 2 doing an unmatched query to find the unmatched records. Access even has an Unmatched Query Wizard to walk you through the process.

    If you would like to write the results to a new or existing table, you would use an Action Query in order to do so (a Make-Table or Append Query).

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Then you should be able to use the RIGHT function to get what you need:
    Right([Field Name],4)

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

Similar Threads

  1. mix of letters and numbers on the form
    By iscinar in forum Forms
    Replies: 15
    Last Post: 10-20-2013, 06:11 AM
  2. Data Validation for letters and numbers
    By bassplayer79 in forum Programming
    Replies: 5
    Last Post: 09-16-2013, 03:19 PM
  3. Add letters to sequential numbers
    By bassplayer79 in forum Programming
    Replies: 29
    Last Post: 09-12-2013, 04:20 AM
  4. IIF with numbers and letters
    By hzrdc2 in forum Queries
    Replies: 2
    Last Post: 03-28-2013, 07:29 AM
  5. Removing all letters or all numbers from string
    By Hayley_sql in forum Programming
    Replies: 2
    Last Post: 09-16-2009, 02:01 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