Note:
frmL is defined as
Dim frmL As Form_frmLogin i
Dim frmL As Form as a start (in some cases, such objects need to be Dim'd as Object). Then SET the object variable as in SET frmL = NameOfSomeForm
Plus, to call a built in event such as Exit or Click the default Private needs to be changed to Public. However, the line is confusing to me
frmL.btnLogin_Click.btnLogin_Click_Exit
Surely that is not a built in event.
AFAIK, you cannot assign the name of an object within the Dim statement as you are doing.
P.S. is is rarely a good idea to run form module events from other forms or procedures.
Last edited by Micron; 08-16-2019 at 02:36 PM.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.