Results 1 to 2 of 2
  1. #1
    ice051505 is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Feb 2013
    Posts
    76

    Query between two linked table and condition depends on one of these tables

    Hi all, I got a urgent situation here, Please help me out, Thanks!

    I have two tables,
    Table A:
    Year Type Count
    1992 Walk 82
    1992 Bike 43
    1992 Vechicle 298
    1992 Ship 3
    1992 flight 3478
    1993 Walk 47
    1993 Bike 13
    1993 Vechicle 638
    1993 Ship 24
    1993 flight 3111
    1994 Walk 0
    1994 Bike 8
    1994 Vechicle 1298
    1994 Ship 24
    1994 flight 3234

    Table B:
    ID Type
    T1 Walk
    T2 Bike
    T3 Vechicle
    T4 Ship
    T5 flight



    I need a query expression like: SlowWay: IIf([TableB].[ID]= 'T1' AND [TableB].[ID]= 'T2',[TableA].[Count])
    FastWay: IIf([TableB].[ID]= 'T3' AND [TableB].[ID]= 'T4' AND [TableB].[ID]= 'T5',[TableA].[Count])

    My expression keep gives me the error, can anyone fix for me? Many Many Thanks!!!

  2. #2
    ice051505 is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Feb 2013
    Posts
    76
    Errr.....THe question is solved...just need to change the ' ' to " ".....

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

Similar Threads

  1. Query Linked Back End Tables
    By AKoval in forum Queries
    Replies: 1
    Last Post: 02-15-2013, 09:14 PM
  2. Multiple linked tables query
    By cchampagne17 in forum Queries
    Replies: 3
    Last Post: 07-31-2012, 07:42 PM
  3. Replies: 6
    Last Post: 05-16-2012, 12:43 PM
  4. Replies: 7
    Last Post: 08-18-2011, 02:18 PM
  5. Replies: 2
    Last Post: 07-07-2011, 08:25 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