Me.Name doesn't work in immediate window... (1 Viewer)

steevie_t

Registered User.
Local time
Today, 14:32
Joined
Feb 9, 2006
Messages
21
Ok perhaps I have brain fade but here is a problem I've been having this afternoon.

New blank database
Create a form
Create a module
Save everything
type Me.Name in the immediate window

Now I've been using access since V1.0 and I'd expect it to return something like Form1 as the default name, but instead I get a compiler error!

Compile Error: Variable not yet created in this context

I also can't execute subs defined for the form from the immediate window.

Anyone had this before?

Steve.
 

Bat17

Registered User.
Local time
Today, 14:32
Joined
Sep 24, 2004
Messages
1,687
Me. never works from the immediate window, it can't tell which form is "Me"

Peter
 

steevie_t

Registered User.
Local time
Today, 14:32
Joined
Feb 9, 2006
Messages
21
Hmmm, it is me loosing my marbles!

I'm sure that before if I had the code open for the form the immediate window would know to use the form related to that class.

I'm sure I've done it that way before. How strange.
 

Users who are viewing this thread

Top Bottom