Microsoft KB Archive/210614

= ACC2000: IPF Referencing ControlSource Containing Code =

Article ID: 210614

Article Last Modified on 11/29/2000

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q210614



Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you switch a form from Form view to Design view, you may receive the following error message:

This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.

If you click Details, you receive an error message similar to the following:

MSACCESS caused an invalid page fault in module MSACCESS.EXE at 015f:300966b2.



CAUSE
This behavior occurs when the ControlSource property of a control on the form contains a function that tries to change the value of that control.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Problem
WARNING: Following these steps will cause an invalid page fault on your computer. Make sure you save and close any open work on your computer before following these steps.  Open a new blank database in Microsoft Access.  Create a new module and type the following procedure:

Function MyFunction

Forms(0).Controls(0).ControlSource = ""

End Function

 Create a new form in Design View.  Add a text box to the form and type the following in the ControlSource property of the text box:

=MyFunction

 On the View menu, click Form View.</li> On the View menu, click Design View.

Note that Microsoft Access returns an Invalid Page Fault.</li></ol>

Additional query words: access violation pra ipf

Keywords: kbbug kberrmsg kbpending KB210614

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.