This is sort of a half theory/half practical question. I didn't even know this was possible previously. I just learned it was possible from someone else's design to call a public function that is embedded in a form from a report (learn something new everyday). It looks just like calling a field/control really. Forms!frmName.functionname in a field on the report.
The problem is it doesn't work in 2003 unless security is set to low.
I know how I would have done that same thing (basically filling in the descriptive text portion of various dropdown criteria fields on the form as report criteria labels). The report should only be open when the form is, so I would directly call the field and perform any cleanup or other stuff directly in the calculated field in the report.
My question:
For anyone more familiar with this way of approaching things, is there a benefit to doing it using the functions in that manner? Is there a way to make it work in 2003 at the medium security setting (what doen't it like about it)? What about doing a general module function that you feed in the form name - would it cause the same problem?
Thanks.
Kris
The problem is it doesn't work in 2003 unless security is set to low.
I know how I would have done that same thing (basically filling in the descriptive text portion of various dropdown criteria fields on the form as report criteria labels). The report should only be open when the form is, so I would directly call the field and perform any cleanup or other stuff directly in the calculated field in the report.
Code:
IIf(Forms!frmBillDialog!Billarea=999,"All Divisions",StrConv(Right(Forms!frmBillDialog!BillArea.Column(1),(Len(Forms!frmBillDialog!BillArea.Column(1))-4)),3))
My question:
For anyone more familiar with this way of approaching things, is there a benefit to doing it using the functions in that manner? Is there a way to make it work in 2003 at the medium security setting (what doen't it like about it)? What about doing a general module function that you feed in the form name - would it cause the same problem?
Thanks.
Kris