A
AccessNubee
DB is A2000 running on Access 2003
I have a main form ( frmOpenReport) with a subform (subReportList) listing
the reports I want to open.
The main form has three fields to input date ranges as report parameters :
[StartDate] [EndDate] [MeetingDate]
The user can enter any date range they need(and this works), but I want to
be able to quickly enter the most common dates used. I want to make some
buttons to quickly fill the boxes with dates as follows:
Button name -StartDate -EndDate
btnYearToDate - 1/1/(current year) - Today's Date
btnSinceLastPayment - (an answer from a Select query ) - Today's Date
btnSinceLastMeeting - (an answer from a Select query will go in the
MeetingDate field) - the others are left blank
After the fields are filled, the user selects a report to run and the report
will use the appropriate date field as a query parameter(which is already
working ..
Does anyone know of how to fill the dates with code? I know it needs to be
the "OnClick" event. I just don't know how to make it work. If you know of
an example on the net somewhere just point me in the right direction.
Thanks!
I have a main form ( frmOpenReport) with a subform (subReportList) listing
the reports I want to open.
The main form has three fields to input date ranges as report parameters :
[StartDate] [EndDate] [MeetingDate]
The user can enter any date range they need(and this works), but I want to
be able to quickly enter the most common dates used. I want to make some
buttons to quickly fill the boxes with dates as follows:
Button name -StartDate -EndDate
btnYearToDate - 1/1/(current year) - Today's Date
btnSinceLastPayment - (an answer from a Select query ) - Today's Date
btnSinceLastMeeting - (an answer from a Select query will go in the
MeetingDate field) - the others are left blank
After the fields are filled, the user selects a report to run and the report
will use the appropriate date field as a query parameter(which is already
working ..
Does anyone know of how to fill the dates with code? I know it needs to be
the "OnClick" event. I just don't know how to make it work. If you know of
an example on the net somewhere just point me in the right direction.
Thanks!