hide/unhide fields (1 Viewer)

nick5196

Registered User.
Local time
Today, 14:02
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
 

SpentGeezer

Pure Noobism
Local time
Tomorrow, 07:02
Joined
Sep 16, 2010
Messages
258
try this, not exactly what u wanted...
 

Attachments

  • hider.mdb
    232 KB · Views: 342

nick5196

Registered User.
Local time
Today, 14:02
Joined
Feb 17, 2011
Messages
43
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: 431

smig

Registered User.
Local time
Tomorrow, 00:02
Joined
Nov 25, 2009
Messages
2,209
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
 

vbaInet

AWF VIP
Local time
Today, 22:02
Joined
Jan 22, 2010
Messages
26,374
ColumnHidden property:

Me.ID.ColumnHidden = True / False

Datasheet View only by the way.
 

smig

Registered User.
Local time
Tomorrow, 00:02
Joined
Nov 25, 2009
Messages
2,209
what I suggested is for multi columns ListBox BTW :)
 

Users who are viewing this thread

Top Bottom