Kodo
"The Shoe"
- Local time
- Today, 16:35
- Joined
- Jan 20, 2004
- Messages
- 707
Using Access2002
My report uses onActivate. Can I not grab the value of the openArgs when using onActivate?
I am using this to collect my values on the form:
this opens the report and it SHOULD pass the values in the combobox to OpenArgs on the report, but I can't get it to work..
Does anyone have any idea why the value would be NULL all the time ?I've tried .printing Me.OpenArgs on the report and it is always NULL.
Thanks
My report uses onActivate. Can I not grab the value of the openArgs when using onActivate?
I am using this to collect my values on the form:
PHP:
Private Sub PrintBySingleDepartment_Click()
Dim i As Variant, DeptID As Variant
For Each i In Me.DeptList.ItemsSelected
DeptID = Me.DeptList.Column(0, i)
DoCmd.OpenReport "Monthly Report By Dept", acViewNormal, , , acHidden, DeptID
Next
End Sub
this opens the report and it SHOULD pass the values in the combobox to OpenArgs on the report, but I can't get it to work..
Does anyone have any idea why the value would be NULL all the time ?I've tried .printing Me.OpenArgs on the report and it is always NULL.
Thanks