Hello - whats with the load statement in Access ?
This is the help code
Private Sub UserForm_Initialize()
Load UserForm2
UserForm2.Show
End Sub
But what is a Userform ?
The help says
UserForm is an Object data type. You can declare variables as type UserForm before setting them to an instance of a type of UserForm declared at design time. Similarly, you can pass an argument to a procedure as type UserForm. You can create multiple instances of user forms in code by using the New keyword in Dim, Set, and Static statements.
Tried to dim and set a variable to be a Userform object but no luck
Can I do this or what ? I can't seem to reference a form unless it is part of the forms collection - why can't this be as easy as it is in vb ?????????????????????
ps I want to load the form to do some stuff to it before I show it so the docmd openform FormName isn't an option
Thankyou oh more knowlegeable in access one
This is the help code
Private Sub UserForm_Initialize()
Load UserForm2
UserForm2.Show
End Sub
But what is a Userform ?
The help says
UserForm is an Object data type. You can declare variables as type UserForm before setting them to an instance of a type of UserForm declared at design time. Similarly, you can pass an argument to a procedure as type UserForm. You can create multiple instances of user forms in code by using the New keyword in Dim, Set, and Static statements.
Tried to dim and set a variable to be a Userform object but no luck
Can I do this or what ? I can't seem to reference a form unless it is part of the forms collection - why can't this be as easy as it is in vb ?????????????????????
ps I want to load the form to do some stuff to it before I show it so the docmd openform FormName isn't an option
Thankyou oh more knowlegeable in access one