D
Danny
I Have the following code for a command button to open up multiple instances
of a form
Does any one know how I can set the name of the new multiple insatnce of the
form .
Thanks
Danny
Function OpenAEntityForm()
Dim frm As Form
Set frm = New [Form_Entity Form]
frm.Visible = True
frm.Caption = frm.Hwnd & ", opened " & Now()
clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd)
Set frm = Nothing
End Function
Function CloseAllClients()
'Purpose: Close all instances in the clnClient collection.
'Note: Leaves the copy opened directly from database window.
Dim lngKt As Long
Dim lngI As Long
lngKt = clnClient.Count
For lngI = 1 To lngKt
clnClient.Remove 1
Next
End Function
of a form
Does any one know how I can set the name of the new multiple insatnce of the
form .
Thanks
Danny
Function OpenAEntityForm()
Dim frm As Form
Set frm = New [Form_Entity Form]
frm.Visible = True
frm.Caption = frm.Hwnd & ", opened " & Now()
clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd)
Set frm = Nothing
End Function
Function CloseAllClients()
'Purpose: Close all instances in the clnClient collection.
'Note: Leaves the copy opened directly from database window.
Dim lngKt As Long
Dim lngI As Long
lngKt = clnClient.Count
For lngI = 1 To lngKt
clnClient.Remove 1
Next
End Function