Solved

Form tags

Posted on 2000-03-29
2
210 Views
Last Modified: 2010-05-02
Okay. I have a MDI parent form. It calls a child form. I am setting the tag property of the child form from the parent to equal a value. Then I open the child form and try to read that value that I set in the tag property of the child form. The value does not show up. What is happening here.? Sometime I get an error about cant have no more than one MDI form. Need some help pronto!!
0
Comment
Question by:slimbx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 25 total points
ID: 2667499
Try this:

Option Explicit

Private Sub MDIForm_Load()
    Form1.Show 'MDI Child form
    NewForm "Form2"
    NewForm "Form3"
End Sub

Private Sub NewForm(ByVal ID As String)
    Dim f As Form
    Set f = New Form1
    f.Caption = ID
    f.Show
    f.Tag = ID
End Sub
0
 

Author Comment

by:slimbx
ID: 2667664
Thanks. Hiding the form then showing the other that the tag is/was being passed to. Elementary huh :) Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question