How to refer to a form instance

  • Thread starter David via AccessMonster.com
  • Start date
D

David via AccessMonster.com

I'm sure this is simple, but I can't find it anywhere...

How do I refer to an instance of a form using its key value?

For example, I have a collection 'colForms' and two forms in that
collection with the keys 'Key1' and 'Key2'. How do I refer to the instance
that has Key1 in code (for exampe, to close or requery the Key1 instance of
the form from another form)?

Thanks in advance,
David
/dminstance
 
B

Brian

David via AccessMonster.com said:
I'm sure this is simple, but I can't find it anywhere...

How do I refer to an instance of a form using its key value?

For example, I have a collection 'colForms' and two forms in that
collection with the keys 'Key1' and 'Key2'. How do I refer to the instance
that has Key1 in code (for exampe, to close or requery the Key1 instance of
the form from another form)?

Thanks in advance,
David
/dminstance

Maybe:

colForms.Item("Key1")

Or am I missing something here?
 

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