Microsoft KB Archive/94396

= ACC: How to Show Field in Datasheet View but Not in Form View =

Article ID: 94396

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q94396



Novice: Requires knowledge of the user interface on single-user computers.



SUMMARY
In Microsoft Access 2.0, 7.0, and 97, if a control's Visible property is set to No, the control will be visible in Datasheet view, but invisible in Form view. You do not need to do anything special to see the field in Datasheet view.

However, Microsoft Access version 1.x does not have a command to display a control in Datasheet view that is invisible in Form view. But by changing the color characteristics and the size, you can create a control that will seem invisible in Form view yet be visible in Datasheet view.

In Microsoft Access version 1.x, to create a control that is visible in Datasheet view and invisible in Form view, you need to set the following properties of the control:

  BorderStyle: Clear Width: 0 Height: 0

You will also have to remove the caption box if one exists with the control.

NOTE: The drawback of this method is that, although you cannot see the control, the control still has a tab order. Because of this, a user can have the focus set to the control immediately before the invisible control and press TAB. The focus will move to the control, yet the user will not see anything, making it look as though the pointer has disappeared. Pressing TAB again or setting focus to another control with the mouse will cause the pointer to reappear.

Keywords: kbhowto KB94396

-

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

© Microsoft Corporation. All rights reserved.