Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Visiility in Datasheet

Status
Not open for further replies.

lizray

Programmer
May 14, 2008
126
AU
I have a control on a subform that displays in datasheet view. Can anyone tell me how to programatically make this control ( and hence its column) be visible or not?. I have tried setting the "visible" property to No and it still displays
 
lizray . . .

Use the following two lines anywhere in code to Show/Hide:
Code:
[blue]   Me.[i]controlname[/i].[purple][b]ColumnHidden[/b][/purple] = True [green]'To Hide[/green]

   Me.[i]controlname[/i].[purple][b]ColumnHidden[/b][/purple] = False [green]'To Show[/green][/blue]
[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Thanks so much TheAceMan..the name says it all.
It works perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top