I have a table of orders with multiple date columns (Department finished dates). I’d like to query the table and return a unique line for each match of a specified date and give a reference to why that line was selected.
So from this table:
OrderID OrderName Date1 Date2 Date3
456 feh 5/1/2011 6/1/2011 3/1/2011
487 meh 12/1/2010 2/1/2011 8/1/2011
If queried for any date greater than 4/1/2011 I would like to return:
456 feh 5/1/2011 Date1
456 feh 6/1/2011 Date2
487 meh 8/1/2011 Date3
The data is in MS Access and I’m not sure if this is possible at the query level or would require subreports to produce.
Thanks much for the help!
Try this to get your last column:
Also note that I changed the alias of the
SelDatecolumn–even though it’s not critical (in Access) when it’s an alias, you really should avoid naming columns with Reserved Words.