Dear Loungers,
I want to know the name of the current form. So I thougt I could have a small VB routine that would run on Load… something like this:
Dim frmCurrentForm As Form
Set frmCurrentForm = Screen.ActiveForm
TempVars(“tv_CurrentForm”).Value = frmCurrentForm.Name
But if I do this access complains “you entered an expression that requires the form to be the active window” I thought it was the active window – nothing else is loaded – but there are a couple of macros that run on Load and on Current, does this mean the form itself is not active?
The reason for using a tv is that I want to then have some generic routines that will use this – for example to close a form.
I’m sure it’s simple but I can’t fix it………… liz