Could anyone advise me how to design a query to get a similar result as using VLookup in Excel.<br><br>In particular I have a table that holds transactions listed by date. In a second table, I have costs associated with particular dates. I want the query to create a table listing each transaction with a cost selected from the second table. If the date doesn't exist in the second table, I want the cost inserted from the record with the earlier existing date.<br><br>for example:<br><br>transaction_table cost_table<br>Date amount date cost<br>1/1/00 25 1/1/00 $3<br>1/1/00 30 1/5/00 $5<br>1/3/00 10<br>1/4/00 15<br>1/5/00 9<br>1/5/00 10<br><br><br>query result<br>date amount cost<br>1/1/00 25 $3<br>1/1/00 30 $3<br>1/3/00 10 $3<br>1/4/00 15 $3<br>1/5/00 9 $5<br>1/5/00 10 $5<br><br>Please help me.<br><br> <br><br><br>