T
tanhus
Right now I have a query "query1" that contains 3 fields
[Deal No] [amount] [trans_dt]
10000 10 01/01/2007
10000 20 15/01/2007
10000 30 15/02/2007
10001 15 10/01/2007
10001 25 15/03/2007
.... ... ...
What i want to do with is have a form that has a position date say
31/01/2007 and i want to build a query so that for every [Deal No] it lists
the previous [trans_dt] before the position date and lists the next
[trans_dt] after the position date, so that the query would look like this
[Deal No] [prev_trans_dt] [next_trans_dt]
10000 15/01/2007 15/02/2007
10000 10/01/2007 15/03/2007
Thanks to those who can help
[Deal No] [amount] [trans_dt]
10000 10 01/01/2007
10000 20 15/01/2007
10000 30 15/02/2007
10001 15 10/01/2007
10001 25 15/03/2007
.... ... ...
What i want to do with is have a form that has a position date say
31/01/2007 and i want to build a query so that for every [Deal No] it lists
the previous [trans_dt] before the position date and lists the next
[trans_dt] after the position date, so that the query would look like this
[Deal No] [prev_trans_dt] [next_trans_dt]
10000 15/01/2007 15/02/2007
10000 10/01/2007 15/03/2007
Thanks to those who can help