Hi Folks
I have created a Commission Report using Access and the calculations are based on historic sales as well as sales for the current month.
In one of my fields I have a Control Source set to
=IIf([dateBank] Between #01/07/01# And #31/07/01#,[comInitial],10)
Now and again I need to change these dates to a different month. Is it possible to create a pop up box using VB that asks the user for the 'between dates' i.e. 01/07/01 and 31/07/01 as soon as the Report is opened and for these values to then be entered into the Control Source?
It would be somewhat easier for the user as opposed to having to edit the Control Source in the Report directly.
Cheers for any help you can give me,
Kenny.
I have created a Commission Report using Access and the calculations are based on historic sales as well as sales for the current month.
In one of my fields I have a Control Source set to
=IIf([dateBank] Between #01/07/01# And #31/07/01#,[comInitial],10)
Now and again I need to change these dates to a different month. Is it possible to create a pop up box using VB that asks the user for the 'between dates' i.e. 01/07/01 and 31/07/01 as soon as the Report is opened and for these values to then be entered into the Control Source?
It would be somewhat easier for the user as opposed to having to edit the Control Source in the Report directly.
Cheers for any help you can give me,
Kenny.