Instantiating Form

T

Terry

This might seem like an obvious question, but I am approaching Access forms
from the view of a VB programmer.
So let me explain the issue I have, here goes.

Option Compare Database
Option Explicit
Private m_frmAny as Forms_frmMyForm
Private Sub cmdOpenForm()
Set m_frmAny = new Forms_frmMyForm
m_frmAny.Init
'Now how do I display this instance?
End Sub

Right I instantiate a new instance of the form called Forms_frmMyForm and
then calll
an Initialise routine that does some setting up. So how would I display this
instance?
The only way I have been able to display a form is DoCmd.OpenForm which
opens the form
first!

Any help or ideas?
Many thanks
Terry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top