Results 1 to 2 of 2
  1. #1
    ser01 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    64

    Hide/Unhide columns in a continous (not datasheet) form.

    I have a continuous form with some 100+ records on it. The form has 7 different fields. I would like to be able to hide some of them. This is easy to do with datasheet form - either manually or with a macro. Is there any way to do this? Or is hiding/unhiding columns on a form impossible outside of the datasheet view? The reason I can't use a datasheet form to begin with, is because in need some of the field labels to be vertical, and that is not possible with a datasheet form. Also some of the field labels are modified dynamically with VBA, and that seems to also not work in a datasheet form. Any suggestions would he highly appreciated.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Hi ser01,

    I'm not sure if this helps but you did say that "Any suggestions would he highly appreciated."

    1) You could use the On Current form event to hide/show any control on the form given a certain criteria. The disadvantage with this when using a continuous form is that the hidden/shown controls are hidden/shown on every record depending on the criteria of the current record.

    2) You could use conditional formatting for text boxes and combo boxes to change the font colour to that of the control's background and set the enabled property to false. The disadvantage of this is that it dosen't hide tha actual control, just makes it look blank and stops users from entering data into it.

    Hope this helps.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-10-2011, 12:25 AM
  2. Hide or Unhide Fields in Query using VB
    By SCFM in forum Programming
    Replies: 4
    Last Post: 03-12-2010, 01:24 PM
  3. How can I hide/unhide DB window with a single button?
    By aquaraider in forum Programming
    Replies: 2
    Last Post: 10-09-2009, 07:01 AM
  4. Replies: 6
    Last Post: 06-03-2009, 02:01 PM
  5. Hide/UnHide forms
    By access in forum Forms
    Replies: 3
    Last Post: 06-03-2009, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums