Results 1 to 5 of 5
  1. #1
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115

    Hiding repeating fields in a continuous form?

    Hi. I have a form generated from a query as a continuous form. It is basically showing a list of products and the section to which they belong (you can thing of 2 columns; Section Name and product name). It is ordered by section name. The results return and display correctly. However as there are many products in each section the field Section Name is shown for each product. Every product does belong to a section. Is there a way to use conditional formatting (or some other method) to only display the first occurrence of the section name for the products in that section. Something like:



    Section 1 Product 1
    Product 2
    Product 3
    Section 2 Product 4
    Product 5
    Section 3 Product 6


    This makes the form easier to read and clearer where the sections change.

    Many thanks

    Tony

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    IMHO it would be better to use a report
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115
    Thank you Bob. I am allowing the user to perform various activities on the data such as moving the products between sections (multiple products) and marking them for deletion (single products) so not sure a report would work well?

  4. #4
    Join Date
    Apr 2017
    Posts
    1,792
    I can't see a way to do this. A couple of possible workarounds:

    a) You can consider a form-subform design instead. In main (unbound) form, you select a section. In subform, linked to section field in main form (or to unbound control in unbound main form where you select section), you display all products from this section;

    b) (I can't check this as I haven't Access available at moment, so this will be a speculation.) When you have some numeric value (p.e. autonumber ID) for section, you can try to use conditional formatting to display rows for sections with even number one color, and with odd numbers another color (of-course when you have deleted some rows, the coloring will be messed up). The thing to check is, can you define a conditional formatting based on field value in row instead of control value (in continuous forms, the control value for all displayed rows is equal to control value in active row - so when you use conditional formatting based on control, all rows in form will be colored like active row).

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Reports have the option for grouping - forms do not have that option. The closest solution would be a main form/sub form as Arvil suggested.

    Main form detail section (in continuous forms mode) would be the Section; in the form footer would be the Product sub form (in continuous forms mode).
    Access might complain about both forms being in continuous forms mode, but just change both back to continuous forms mode.
    Set up the "Link Master Fields/ Link child Fields"........

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

Similar Threads

  1. Hiding fields in tab controlled form
    By chohan78 in forum Forms
    Replies: 6
    Last Post: 06-03-2017, 03:44 PM
  2. Replies: 3
    Last Post: 07-21-2014, 06:08 AM
  3. Replies: 5
    Last Post: 06-24-2013, 04:54 PM
  4. Populating a Continuous Form with Unbound Fields
    By gazzieh in forum Programming
    Replies: 6
    Last Post: 02-28-2013, 11:11 AM
  5. Hiding a new record in a continuous form
    By system243trd in forum Forms
    Replies: 3
    Last Post: 12-03-2011, 01:04 AM

Tags for this Thread

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