Re: Scope of Variant / Array
- From: "J_Goddard via AccessMonster.com" <u37558@uwe>
- Date: Fri, 21 Sep 2007 17:01:57 GMT
Hi -
Since in the immediate window you can reference the array without the parent.
qualifier i.e. ?ubound(m_setting) , your code should work without the parent.
qualifier as well. Try removing the parent. from the array reference.
John
KitCaz wrote:
Hi,
I've got a form with a linked subform. In the subform I have references to
variables declared 'public' in the parent form, e.g.:
public m_locked as boolean
I'm successful in referencing those variables in the subform by using a
'parent.' prefix, e.g.:
if parent.m_locked then...
Similarly, I have an array declared public to the parent which I populated
from a recordset prior, yet when I attempt to reference an element in it
(e.g. parent.m_setting(1,0) ), I get an error:
run-time error '451':
property let procedure not defined and property get proceduer did not return
an object
I'm able to get an accurate response when I type "?ubound(m_setting)" from
the Immediate Window while I'm debugging a line in the subform, so doesn't
that mean it's in scope? Yet I can't get a returned value on any element in
it.
Why can't I get the values out? What am I doing wrong?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200709/1
.
- Prev by Date: Re: DISABLE Mousewheel on form?
- Next by Date: Re: I'm sorry to be bothersome, but I really need help
- Previous by thread: Re: DISABLE Mousewheel on form?
- Next by thread: Re: Scope of Variant / Array
- Index(es):
Relevant Pages
|