Results 1 to 2 of 2
  1. #1
    ryan812x is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Posts
    2

    Automatic Column Hider


    Hi guys I'm slightly new to access and I have been working on a new database that I have built out the skeleton for and now am adding functional features to it. So far I've been able to add a decent amount of basic functions through poking around or youtube videos and tutorials. One problem that I have ran into is trying to make an automatic column hider. I'd like for it to hide the columns by the current date so that it only shows this months column for example. So if it were to change to the first of September then August's column would be hidden automatically due to the date changing over. Would anyone have any idea on how something like that would be able to be done or if it is possible? Not sure if this is the best place to post this so let me know if I should put it somewhere else thanks!

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It sounds like you may have a design flaw with your database.

    In designing your database, you want to follow the Rules of Data Normalization (at least the first few). One says that you should not have repeating similar data going across columns (fields). So you wouldn't have separate fields for various dates. This would require you to keep updating your tables to add more fields, which shouldn't be necessary in a well-designed database. And it makes things like searches much harder (what if you wanted to search for a particular value across all the date fields? You would need to add criteria to every single date field, which is a nightmare!).

    Instead of having multiple fields for the various dates, you only have a Date field, and a Value field, and then have multiple records (rows) instead of fields. Now if you need to add more dates, you do not need to add more fields, you simply add new records. And if you need to search for a particular value, you only need to put the cirtiera on one field. If you want to present the data going across, then you would use a CrossTab Query to do that.

    See here for a guide on designing databases in Access and the Rules or Normalization: https://support.microsoft.com/en-us/...ization-basics
    Databases that are not well designed often end up being very difficult to work with.

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

Similar Threads

  1. Replies: 4
    Last Post: 11-29-2017, 10:01 AM
  2. Replies: 14
    Last Post: 07-13-2015, 12:47 PM
  3. Replies: 4
    Last Post: 01-18-2015, 01:28 PM
  4. Replies: 6
    Last Post: 10-09-2014, 12:41 PM
  5. Replies: 8
    Last Post: 07-29-2014, 12:35 PM

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