C
cbgraham_asu
NOTE: I"m a VBA novice
I have a set of reports that use a common Report Parameter form.
When I first designed them it was convenient as the same set of
filters were applicable to all the reports:
Example: report for invoices, report for open orders, report for
processing orders
Filters were: Location, Manager & Employee
Now they also want to filter by date range, which won't consistent
between reports:
IE. Invoices = 30, 60 or 90 days old
vs Pending Orders = 10, 15, 30 days old
I'd like to just add one more drop down box to the parameter report
and have the value list change based on what report it was called
from. I have within the report code:
'define drop down values
Dim Vl_Rng As String
Vl_Rng = "0;30;60;90"
' Open report parameter form
DoCmd.OpenForm "FrmCRP", , , , , acDialog
And then in report parameters form I want to set something like
me.cboRng.RowSource = VL_Rng
but I"m obviously missing something that will allow this variable to
pass from the reports event to the forms opening event.
Any help is appreciated.
-Christine
I have a set of reports that use a common Report Parameter form.
When I first designed them it was convenient as the same set of
filters were applicable to all the reports:
Example: report for invoices, report for open orders, report for
processing orders
Filters were: Location, Manager & Employee
Now they also want to filter by date range, which won't consistent
between reports:
IE. Invoices = 30, 60 or 90 days old
vs Pending Orders = 10, 15, 30 days old
I'd like to just add one more drop down box to the parameter report
and have the value list change based on what report it was called
from. I have within the report code:
'define drop down values
Dim Vl_Rng As String
Vl_Rng = "0;30;60;90"
' Open report parameter form
DoCmd.OpenForm "FrmCRP", , , , , acDialog
And then in report parameters form I want to set something like
me.cboRng.RowSource = VL_Rng
but I"m obviously missing something that will allow this variable to
pass from the reports event to the forms opening event.
Any help is appreciated.
-Christine