Solved

Only one MDI from allowed

Posted on 1998-12-01
5
171 Views
Last Modified: 2010-05-03
I have an MDI application, and when I try to reference objects through the MDI Parent (i.e. frmMain.ActiveForm.Caption = "Test"), or try to call public functions declared in the MDI from (i.e. Call frmMDI.Test_Func), I get the error message "Only one MDI from allowed".  Where am I going wrong?
0
Comment
Question by:jjmartin
  • 3
5 Comments
 
LVL 1

Accepted Solution

by:
MAVERICK earned 20 total points
ID: 1447681
try Screen.activeForm.caption = "test"

As for the other problem with the declared functions... put them in a module and call them from there... simpler


0
 
LVL 3

Author Comment

by:jjmartin
ID: 1447682
Thanks for the help.  I didn't know about the Screen object.  I orignally had all the functions in a module, but then they weren't operating on the dynamic MDI Child forms, so I moved them to the form, and I couldn't call a function.  Anyway, thanks for the help. I got everything straightened out.
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1447683
No problem

0
 

Expert Comment

by:kraphics
ID: 5013130
I get the same error, but it is when I attempt to call the MDI's sub mnuWindowTileHorizontal_Click

is there any help ?
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 5050150
I have been designing web pages for the last 2 years .. might be better to ask as a new question...

sorry i can't be more helpful

Maverick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now