Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get current form name from vba

Status
Not open for further replies.

psbsmms

Programmer
Dec 14, 2001
74
I need to retrieve the current form name programically so I can ge it into a variable. Any Suggestions?
 
Me.Form returns the form name where the code is being executed (i.e. Form_Current() or some other subroutine), so it may/can differ from the above at times.
 
Thanks screen.activeform.name gotme just what I needed. Me.form returned multiple properties of the form, which will more than likely come in handy later. Thanks to both for all your help and quick response.
 
Ack, I mean Me.Name, my synapses are firing blanks today apparently.

Me. is the same as Me.Form.

Or maybe you shouldn't believe what I say today--probably for the best.
 
Any code comes in handy at some time. I can't the number of times I miss tyed something only to try and recreate it again when I need it. I appreciate the time and effort.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top