I always knew you could reference procedures and functions declared as public
from outside of the container form, but I didn't realize that it extended to
variables.
Incidentally, after dimming my public variable in the main form's declaration
section of its module:
Public intMyNumber As Integer
.... and setting its value in the main form's "On Open" event ...
intMyNumber = 1234
.... I was able to retrieve the variable's value from within a procedure in the
subform's module in the following manner:
MsgBox "The variable 'intMyNumber' in the parent form contains the value: " _
& Me.Parent.intMyNumber
Hoping that this might help clear things up for Bill. Now that it's cleared up
for me. <g>
