Results 1 to 3 of 3
  1. #1
    jd316632 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    4

    Comparing Similiar Data Between Tables In A Query

    I've looked on Google but am not even sure how to phrase this to find an answer. I've got 2 tables in a database, one containing a persons name and a schedule. The other table is updated regularly and contains their clock ins and outs. The problem is the table that is updated with the clockin/clockout will sporadically add the person's username



    Example, in the shift table it has their name (i.e. John Smith) and then their work schedule. In the Clockin/Clockout table it will sometimes show John Smith, other times it will show John Smith(JSmith).

    As a quick fix for each employee I have 2 records in the shift table, one with the username, one without. What I would like to have is something in place that will either remove the username all together or that will work similar to a like function and will look for "John Smith*"

    Any help with this is greatly appreciated. If you need more information please let me know.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    you need to find a pattern. Whatever it is, that's the key.

    for instance, if the randomized entries always look like:
    Code:
    john smith (jsmith)
    and the regulars always looks like:
    Code:
    john smith
    then you could simply check for the existence of a "(" or ")" and compare it to delete those that are invalid or unwanted. For that, you'd use instr() to get it done.

  3. #3
    jd316632 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    4
    Found a resolution to this. If interested you can find the result here: http://www.utteraccess.com/forum/Com...8#entry2083418

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

Similar Threads

  1. Comparing tables
    By YoungWolf in forum Database Design
    Replies: 7
    Last Post: 01-10-2011, 11:32 AM
  2. Comparing / Subtracting Tables
    By quigongrim in forum Queries
    Replies: 5
    Last Post: 09-10-2010, 06:59 PM
  3. Replies: 6
    Last Post: 08-27-2010, 07:06 PM
  4. Comparing two tables with query
    By Dnphm in forum Queries
    Replies: 2
    Last Post: 08-13-2010, 02:45 PM
  5. Help On Comparing Quantity in Tables
    By rochy81 in forum Access
    Replies: 2
    Last Post: 05-29-2009, 10:20 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