We have a form where users select a start date (cboStartDate) and end date (cboEndDate). The after update event of these combo boxes assign values to global variables for start and end dates. There are functions called GetStartDate() and GetEndDate() that return those values in a Crosstab query as criteria (Between GetStartDate() And GetEndDate()). The Date fields are the Column Headers in the crosstab query.
We want this crosstab query to be the data source for a form that will be opened in datasheet view. However, the form has a couple of calculations on it based on the data in each month. Since the date ranges are selected on the fly, how can we populate the form with the user’s date selections dynamically?
Please let me know if my explanation is not clear or you need a sample.