Blackelise
aka Andrew
- Local time
- Today, 04:42
- Joined
- Jun 13, 2012
- Messages
- 35
Hi,
I am seeking to write a value to a field on the report that has been passed from a form using OpenArgs. The value is received by the report but I cannot get the report to display it.
Details:
I have a text box in report design, it is called ReportType. ReportType does not exist on the supporting query, so access2007 is telling me:
- Invalid Control Property: Control Source
- No Such Field in the Field List
The code that I have on report load is:
When I run the sequence (clicking a button) I am asked to enter a parameter value for ReportType prior to the report loading (It is this entered value that gets printed, this is just adding more confusion into the mix....).
I then get a runtime error ‘You can't assign a value to this object', debug highlights the code above but also shows that Me.ReportType is set to the value in Me.OpenArgs.
Once again your wisdom is sought.
Thanks.
I am seeking to write a value to a field on the report that has been passed from a form using OpenArgs. The value is received by the report but I cannot get the report to display it.
Details:
I have a text box in report design, it is called ReportType. ReportType does not exist on the supporting query, so access2007 is telling me:
- Invalid Control Property: Control Source
- No Such Field in the Field List
The code that I have on report load is:
Code:
Private Sub Report_Load()
Me.ReportType = Me.OpenArgs
End Sub
When I run the sequence (clicking a button) I am asked to enter a parameter value for ReportType prior to the report loading (It is this entered value that gets printed, this is just adding more confusion into the mix....).
I then get a runtime error ‘You can't assign a value to this object', debug highlights the code above but also shows that Me.ReportType is set to the value in Me.OpenArgs.
Once again your wisdom is sought.
Thanks.