Solved

Form tags

Posted on 2000-03-29
2
205 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 64
Copy a row 12 75
Automatic Email Reminder 4 94
Userform to show a range in excel. 3 33
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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