|
-
Jun 23rd, 2004, 12:13 PM
#1
Thread Starter
Lively Member
Passing values
Hi All:
I need to pass an object from form1 to form2. How can I go about doing this?
For example:
Dim oLst As Listbox
Load Form2 (oLst) "this cause an error for me.
Thansk
-
Jun 30th, 2004, 02:22 PM
#2
I would try making a Public Get Property on the form that will share the object like this:
VB Code:
Option Explicit
Private m_colFields As Collection
'
'
Public Property Get Fields() As Collection
Set Fields = m_colFields
End Property
-
Jun 30th, 2004, 02:25 PM
#3
Frenzied Member
What is "Load Form2(oLst)" supposed to do? I've never seen a load statement like that.
Why not create the listbox in the Load event of Form2?
-
Jun 30th, 2004, 03:35 PM
#4
Thread Starter
Lively Member
resolved:passing values
Thanks all for helping me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|