alienscript
Registered User.
- Local time
- Today, 07:23
- Joined
- Jul 17, 2004
- Messages
- 20
need a query on looking up for strings ended with "W"
Hi the Access experts!
Hope to have a query to solve this old pain in my neck..
I am looking up from Table1 to Table2 to match the OrderQty for the PartNumbers, using Join Properties. I insert another Field and name it as [W-PartNumberOrderQty]. Can I have the query such that Table1 PartNumber will look for OrderQty in Table2 for only those PartNumbers that end with a "W" and output the values in this inserted Field name as [W-PartNumberOrderQty] ?
Thanks a lot!
Table1
PartNumber
0220-34567
2442-12345
1120-44234
5587211
Table2
PartNumber OrderQty
0220-34567 4
0220-34567W 5
2442-12345W 10
1120-44234W 12
5587211 8
5587211W 3
Output Table
PartNumber OrderQty W-PartNumberOrderQty
0220-34567 4 5
2442-12345 0 10
1120-44234 0 12
5587211 8 3
Hi the Access experts!
Hope to have a query to solve this old pain in my neck..
I am looking up from Table1 to Table2 to match the OrderQty for the PartNumbers, using Join Properties. I insert another Field and name it as [W-PartNumberOrderQty]. Can I have the query such that Table1 PartNumber will look for OrderQty in Table2 for only those PartNumbers that end with a "W" and output the values in this inserted Field name as [W-PartNumberOrderQty] ?
Thanks a lot!
Table1
PartNumber
0220-34567
2442-12345
1120-44234
5587211
Table2
PartNumber OrderQty
0220-34567 4
0220-34567W 5
2442-12345W 10
1120-44234W 12
5587211 8
5587211W 3
Output Table
PartNumber OrderQty W-PartNumberOrderQty
0220-34567 4 5
2442-12345 0 10
1120-44234 0 12
5587211 8 3