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
Solved

Form tags

Posted on 2000-03-29
2
191 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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

790 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