hide/unhide fields

nick5196

Registered User.
Local time
Today, 11:52
Joined
Feb 17, 2011
Messages
43
I have a sub table on my switchboard. I wish to have a button which opens a set of tickboxes allowing the user to select which fields are shown within the subtable. The "student template" ON MS Access 2007 features this.

Thanks allot
Nick
 
Thanks for your help but this is not exactly what I am looking for.

I have found how to open the "unhide columns selector" i want, Just rightclick the subtable and select "unhide columns". Basically i just want a button which does this.

I have attached an image of the box i mean.

Thanks a lot
Nick
 

Attachments

  • Capture.PNG
    Capture.PNG
    27.2 KB · Views: 455
use the columnsWidths
(use twips)

Code:
dim strWidths as string
 
if me.checkbox1 = true then
 strWidths  = "1000;"
else
 strWidths  = "0;"
end if
 
if me.checkbox2 = true then
 strWidths  = strWidths  & "1000;"
else
 strWidths  = strWidths  & "0;"
end if
 
if me.checkbox3 = true then
 strWidths  = strWidths  & "1000;"
else
 strWidths = strWidths  & "0;"
end if
 
me.list.columnsWidths = strWidths
 
ColumnHidden property:

Me.ID.ColumnHidden = True / False

Datasheet View only by the way.
 
what I suggested is for multi columns ListBox BTW :)
 

Users who are viewing this thread

Back
Top Bottom