Table design and easy UI ideas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #1

    Table design and easy UI ideas

    I have a chart that is currently on paper, that I would like to store in a database. And I want it to be normalized, but I can't figure out how to get an easy to edit UI to go with the normalized tables. Here is the chart:
    Code:
    Immunization                            |   Date   |   Date   |   Date  |   Date  |   Date  |   Date 
    Diphtheria Tetanus and/or Pertussis
    Poliomyelitis
    Measles
    Mumps
    Rubella
    Hepatitis B
    A crosstab query would display the information, but it isn't updateable. I would like to make the entry form very close to this as it is easy to just tab through the fields and enter the dates, but I can't think of a way to do so while having the data normalized. Does anyone know any tricks to make this possible?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    What I've done before was to embed one form multiple times as subforms, with each instance linked to a different row.

    Comment

    • Seth Schrock
      Recognized Expert Specialist
      • Dec 2010
      • 2965

      #3
      So would I have to have a field for position number so that the subforms can pull the correct records?

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Yes, I used a query or DCount() to number the rows

        Comment

        • Seth Schrock
          Recognized Expert Specialist
          • Dec 2010
          • 2965

          #5
          If I use a query or DCount() to number the rows, won't that make the query not updateable?

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            Surprisingly no, I was able to able to update the fields from the original table.

            Comment

            • Seth Schrock
              Recognized Expert Specialist
              • Dec 2010
              • 2965

              #7
              Strange. I used the DCount() method and the query says unupdateable, but it lets me update it.

              Now here is another question. If I'm creating subforms for each column of dates, would it be better to not normalize this portion of the database since I have lost the benefit of not having to redesign the FE if I want a seventh column of dates? I guess if I didn't normalize it, it would be more difficult to count how many the immunization shots the person had had.

              Comment

              • Rabbit
                Recognized Expert MVP
                • Jan 2007
                • 12517

                #8
                I would keep it normalized to make future queries easier

                Comment

                Working...