Y
Yarik Mezheritskiy
Hello!
Please, help me to solve this puzzle:
(1) We have a heap of legacy Access 2000 code that frequently uses the
following trick: when a value of some bound control is necessary, the
code refers to that control using its "Control Source" property value
(instead of, say, using the control's "Name" property value). For
example, if there is a bound text field named "txt88" and having its
"Control Source" set to "CustomerName" (which is a name of the
corresponding field in the underlying recordset), the code looks like
strName = Me.CustomerName (a)
instead of "classic"
strName = Me.txt88 (b)
(2) We have two computers with installations of MS Access 2000 + MS
Office Developer 2000 where this code is being maintained/developed.
The puzzle is that on one of those computers the code like (a)
compiles without a hitch, but on another computer each occurence of
code like (a) causes VBA compiler to issue an error ("Method or data
member not found"). Could somebody shed some light of why could
compiler on the second computer complain about code like (a)?
(The only difference between two computers and their software
configurations that I can easily describe is that the second computer
-- where compiler complains -- was set up recently, whereas the first
computer has been set up a long time ago and nobody remembers what
could have been installed there after basic MS Office + MS Office
Developer stuff.)
Thank you,
Yaroslav.
Please, help me to solve this puzzle:
(1) We have a heap of legacy Access 2000 code that frequently uses the
following trick: when a value of some bound control is necessary, the
code refers to that control using its "Control Source" property value
(instead of, say, using the control's "Name" property value). For
example, if there is a bound text field named "txt88" and having its
"Control Source" set to "CustomerName" (which is a name of the
corresponding field in the underlying recordset), the code looks like
strName = Me.CustomerName (a)
instead of "classic"
strName = Me.txt88 (b)
(2) We have two computers with installations of MS Access 2000 + MS
Office Developer 2000 where this code is being maintained/developed.
The puzzle is that on one of those computers the code like (a)
compiles without a hitch, but on another computer each occurence of
code like (a) causes VBA compiler to issue an error ("Method or data
member not found"). Could somebody shed some light of why could
compiler on the second computer complain about code like (a)?
(The only difference between two computers and their software
configurations that I can easily describe is that the second computer
-- where compiler complains -- was set up recently, whereas the first
computer has been set up a long time ago and nobody remembers what
could have been installed there after basic MS Office + MS Office
Developer stuff.)
Thank you,
Yaroslav.