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

Last reviewed: April 2, 1997
Article ID: Q94396
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SUMMARY

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

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 : FmsHowto kbusage
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.