[AccessD] How do I determine which form called?

Hale, Jim jim.hale at fleetpride.com
Mon Jun 30 11:13:25 CDT 2003


Thank you for your suggestion. I think I need to explain a  bit further. I
have a form "frmSelect" that utilizes a special class "DblListbox". Since
the two are almost always associated I have have code in the "init" method
to default to frmSelect as follows:

If fm Is Nothing Then Set Me.Callingform = Forms!frmselect

where the callingform property passes the form object (I have not included
the error checking code):
Public Property Set Callingform(frm As Form)
        Set fm = frm
end property

In the open property of frmselect I have:
Set lb = New DblListbox
Set lb.Callingform = Me
lb.Init strRecordname

All this works fine. However it occurs to me that if dbllistbox were smart
enough to determine which form called it I could eliminate the callingform
property. That is why I was wondering if there exists some way to determine
and pass automatically to the dbllistbox class the form object which called
it. Thanks,
Jim Hale 

-----Original Message-----
From: Jim DeMarco [mailto:Jdemarco at hshhp.org]
Sent: Monday, June 30, 2003 10:10 AM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] How do I determine which form called?


One way is to pass it using the docmd.openform's OpenArgs parameter.

HTH, 

Jim DeMarco 
Director of Product Development 
HealthSource/Hudson Health Plan 

-----Original Message-----
From: Hale, Jim [mailto:jim.hale at fleetpride.com]
Sent: Monday, June 30, 2003 10:04 AM
To: 'Access DatabaseAdvisors (E-Mail)'
Subject: [AccessD] How do I determine which form called?


Does anyone have a function that will allow a class to determine which form
called it? TIA 
Jim Hale 


****************************************************************************
*******
"This electronic message is intended to be for the use only of the named
recipient, and may contain information from Hudson Health Plan (HHP) that is
confidential or privileged.  If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution or use of the
contents of this message is strictly prohibited.  If you have received this
message in error or are not the named recipient, please notify us
immediately, either by contacting the sender at the electronic mail address
noted above or calling HHP at (914) 631-1611. If you are not the intended
recipient, please do not forward this email to anyone, and delete and
destroy all copies of this message.  Thank You".
****************************************************************************
*******

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030630/b69a4002/attachment-0001.html>


More information about the AccessD mailing list