Input past end of file run-time error 50021 & Run-Time error 50304  An instance of....

Posted on 2004-11-09
Last Modified: 2012-06-21

I have the pleasure of debugging somebody else's code.  When attempting to run this program (F5), the program generates the following error:

Run time error 50021.

Input past end of file 'C:\Documents and Settings..................someUserControl.ctx"

The second error occurs when trying to view the design of a particular form:

Run-time error 50304:
An instance of "deSol" cannot be created becasue its designer window is open.

Sounds fair enough, but how do I close it then?

I hope those are general enough errors where posting code is not required


Question by:brdrok
    LVL 14

    Assisted Solution

    Doubleclick the "control" in design mode and close it. Maybe that will help
    LVL 11

    Accepted Solution


    You cannot have the control open in design mode and open a form with the control on it at once. So you need to close the design mode window of the control in order to access it on a form where it is used.

    Whats causing the 1st error i cannot tell you though :(
    LVL 7

    Author Comment

    Never worked with Designers....

    Inside my project window, there is a folder called "Designers".  Inside that folder is a node called "deSol (deSol.dsr)".  When I double click on it, it opens up a new window showing the connection & command folders.

    Am I at the right place if I want to close the "design mode window" of deSol?



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    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…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    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…

    794 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

    16 Experts available now in Live!

    Get 1:1 Help Now