K
KimTong via AccessMonster.com
Hi,
I have 'Table1' with 3 fields: MonthOfFlight (text 3 digits), USExchange
(number), CANexchange (number) and 'Table2' with 3 fields: Flightdate (date),
Agent (text), amount (number).
The layout of table1, should be like this:
Jan 1.24 1,1
Feb 1.30 1.05
Mar 1.26 1.15 ... etc
The loyout of table2 should be like this:
1/1/07 AAAAA 1000
2/1/07 CCCCC 1500
3/1/07 BBBBB 1250
I create a new query using 'Table2' with all 3 the fields plus 1 more field
'Exchange'. I want to take USExchange to fill on Exchange field based the
mont of flightdate. So I have to use Month(Flightdate) and search on 'Table1',
if it match take the UScexcahnge from ;Table1' to field Exchange.
So the query should be like this:
Date Agent Amount Exchange
1/1/07 AAAAA 1000 1.1
2/1/07 CCCCC 1500 1.05
3/1/07 BBBBB 1250 1.15
How can I put the formula/function on Exchange, so the result like above?. If
anyone can help me, I am appreciated. Thanks..
KF
I have 'Table1' with 3 fields: MonthOfFlight (text 3 digits), USExchange
(number), CANexchange (number) and 'Table2' with 3 fields: Flightdate (date),
Agent (text), amount (number).
The layout of table1, should be like this:
Jan 1.24 1,1
Feb 1.30 1.05
Mar 1.26 1.15 ... etc
The loyout of table2 should be like this:
1/1/07 AAAAA 1000
2/1/07 CCCCC 1500
3/1/07 BBBBB 1250
I create a new query using 'Table2' with all 3 the fields plus 1 more field
'Exchange'. I want to take USExchange to fill on Exchange field based the
mont of flightdate. So I have to use Month(Flightdate) and search on 'Table1',
if it match take the UScexcahnge from ;Table1' to field Exchange.
So the query should be like this:
Date Agent Amount Exchange
1/1/07 AAAAA 1000 1.1
2/1/07 CCCCC 1500 1.05
3/1/07 BBBBB 1250 1.15
How can I put the formula/function on Exchange, so the result like above?. If
anyone can help me, I am appreciated. Thanks..
KF