J
John Geddes
In Access 2000, I have an instance of a form set up like this:
set bb = New Form_frmBook
I would like to be able to reference variables declared within the form
module, programatically, from other modules.
If frmBook has :
dim kids as integer
I can happily reference bb.children in hard coding
Had I set "kids " up as a form field, I could reference this as bb(xx)
if xx had the string "children" in it.
But I can't find a way of achieving the same with a module variable.
I've tried building a string with "bb." in it, appending the variable
name ("kids") and then using Eval, ie
eval("bb.kids")
but this raises a 2482 error complaining that Access cannot find the
name "bb".
Ideas, please.
John Geddes
set bb = New Form_frmBook
I would like to be able to reference variables declared within the form
module, programatically, from other modules.
If frmBook has :
dim kids as integer
I can happily reference bb.children in hard coding
Had I set "kids " up as a form field, I could reference this as bb(xx)
if xx had the string "children" in it.
But I can't find a way of achieving the same with a module variable.
I've tried building a string with "bb." in it, appending the variable
name ("kids") and then using Eval, ie
eval("bb.kids")
but this raises a 2482 error complaining that Access cannot find the
name "bb".
Ideas, please.
John Geddes