G
Guest
I have 2 combo boxes for dates. The dates are from a table in which
duplicates are allowed. Therefore, I have a Select statement in the rowsource
that groups by date and sorts decending. This gets 1 of each date and sorts
the list in reverse order. New dates are added to the table every month so
the list length will increase. For the Ending Date combobox, I have the
Default Value set to:
=[EndDate].[ItemData](0)
This works well.
However, how would I get the last row of the list if I don't know how many
items are in the list for the Beginning Date? I tried something like:
=[EndDate].[ItemData]("Last Row")
without success. I typed Last Row without the quotes but Access added them.
I need to do this in the Default Value property of the combo box.
Thanks
duplicates are allowed. Therefore, I have a Select statement in the rowsource
that groups by date and sorts decending. This gets 1 of each date and sorts
the list in reverse order. New dates are added to the table every month so
the list length will increase. For the Ending Date combobox, I have the
Default Value set to:
=[EndDate].[ItemData](0)
This works well.
However, how would I get the last row of the list if I don't know how many
items are in the list for the Beginning Date? I tried something like:
=[EndDate].[ItemData]("Last Row")
without success. I typed Last Row without the quotes but Access added them.
I need to do this in the Default Value property of the combo box.
Thanks