A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hiding a column on a form in DS view



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2008, 05:01 AM posted to microsoft.public.access.forms
tsison7
external usenet poster
 
Posts: 69
Default Hiding a column on a form in DS view

I want to call up a form in DS view with the option of hiding data via an
option group. I set me![controlname].visible = false depending on the option
called and the control disappears in Form view but not in DS view. Any help
is appreciated.
--
TIA
  #2  
Old January 7th, 2008, 06:03 AM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Hiding a column on a form in DS view

In Datasheet View you really can't do much in the way of formatting things
such as visibility using the Properties Box. To make a column disappear in a
Datasheet View, you need to use the ColumnHidden Property:

Private Sub Form_Load()
Me.YourControlName.ColumnHidden = -1
End Sub

To make it visible again you'd use

Me.YourControlName.ColumnHidden = 0

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200801/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.