ACC1x: GPF Hiding Control in Form Footer in Datasheet View

ID: Q96990


The information in this article applies to:


SYMPTOMS

If you have a control in the footer of a form and you then hide that control in an event, such as OnCurrent, and then view the form in Datasheet view, Microsoft Access may cause a general protection (GP) fault.


CAUSE

In Datasheet view, Microsoft Access incorrectly assumes that a grid column is associated with the field being hidden. However, that is not true in this case, because the control is in the form's footer.


RESOLUTION

Because forms with controls in the footer are normally meant to be used in Form view, set the Form's ViewsAllowed property to Form so that the form cannot be switched to Datasheet view.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem no longer occurs in Microsoft Access version 1.1.


Keywords          : kbusage FmsEvnt 
Version           : 1.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: March 20, 1999