if I write code for the Newfield control, Me.Newfield shows up,
....and, of course, this only happens while writing code in the form's
own module.
but if I try to use VBA from a control in another form to enter
data into the Newfield field, Me.Newfield does not show up.
....which is to be expected. In each form's module, you will only see the
objects of that form in the list, not all forms' objects!
It appears that because I added the field at a later stage, it only shows
up erratically in the list of fields etc when you enter Me. in VBA.
Wrong assumption. It has to do with which module you're working in, like
I said above. In VBA, Me. actually means "the object this modile belongs
to", and it is just an abbreviation for Forms![The name of the current
form]. or Reports![The name of the current report]. In order to
reference a control on a form while in another module (either general or
form or report mosule), you need the full reference, like:
Forms![name of the form the control belongs to]!Newfield
instead of Me.Newfield (which only works in the form's own module).
HTH,
Nikos