Solved

Form tags

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

776 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