Table: Info
Code:
CustID Cust Name Item
1235 Middle Steve Cust 55
2345 Boss AG 66
1142 kate spade new york 77
4666 Wally Bags 58
6868 LAUREN by Ralph Lauren 56
Table:Qty
Code:
Item# Description name Condition Qty
55 kate spade new york New 5
55 Steven by Steve Madden Ltd New 2
55 MPS Used 7
77 West Used 6
77 Chocolate New York New 8
Query1 (Combine above two tables)
Code:
Item# CustID Cust Name Qty Description Name Condition
55 1235 Middle Steve Cust 7 MPS Used
55 1235 Middle Steve Cust 2 Steven by Steve Madden Ltd New
55 1235 Middle Steve Cust 5 kate spade new york New
66 2345 Boss AG
77 1142 kate spade new york 8 Chocolate New York New
77 1142 kate spade new york 6 West Used
58 4666 Wally Bags
56 6868 LAUREN by Ralph Lauren
This is not what I want to display on the query. I want to know if it possible to have this output on the query. I am not sure query will be able to do it or need to use vba.
I want whenver the description match some word on the Client name put it on one column and the rest sum up and display on another column. The query should look like this:
Matching table
Code:
1 & 2 Item# CustID CustName Match the word The rest which sumup
55 1235 Middle Steve Cust 2 12
77 1142 kate spade new york 8 6
66 2345 Boss AG
58 4666 Wally Bags
56 6868 LAUREN by Ralph Lauren
Is this possible to do?