"=?Utf-8?B?RWR3YXJkIEpvbmVzIChFZGRpZSk=?="
<EdwardJonesEddie@discussions.microsoft.com> wrote in
news:B277ADA3-4424-4A38-A03D-D70486AE3638@microsoft.com:
> It is failing on Me.chkPending stating that "You entered an expression
> that has no value." Me.chkPending is a checkbox in the report.
If it's control, then you need to address the controls collection. Try
Me.Controls("chkPending")
or, for short
Me!chkPending
Access only exposes fields in the recordsource as properties (i.e. visible
with the dot operator), not controls.
Hope that helps
Tim F
John Spencer (MVP) - 30 Jul 2005 01:16 GMT
If you are calling this from the report's open event, then I believe that the
control is not populated yet and is probably not available. Perhaps you can get
the value you need some other way - using a DLookup function for example.
Also, I think you really need to call the function without the () as in
ChangeBGColor " - Called from Report_Open."
> "=?Utf-8?B?RWR3YXJkIEpvbmVzIChFZGRpZSk=?="
> <EdwardJonesEddie@discussions.microsoft.com> wrote in
[quoted text clipped - 17 lines]
>
> Tim F