Solved

Form tags

Posted on 2000-03-29
2
163 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
Comment Utility
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
Comment Utility
Thanks. Hiding the form then showing the other that the tag is/was being passed to. Elementary huh :) Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now