This starts as an architecture question and then gets into a form question.
I work with a database of neighborhood indicators (health, crime, etc). Basically, I have a series of data tables; each table holds time-series data for a single indicator or a few related indicators. For each indicator, I have a primary key that is related to a table of IndicatorIDs. The IndicatorID table of course has an "IndicatorID" field and an "IndicatorName" field with text describing the indicator. Two of the indicators are "value of houses sold" and "# of houses sold". Up to this point I have been structuring tables with the following fields:
"ID" (autonumber), "IndicatorID", "neighborhood", "year", and "value/count"
As for the housing sales data, I run into a problem (I think) b/c I shouldn't put "value sold" in the same field as "# sold", right, because one is currency and one is count? So, my thought was that I would have two fields: "value" and "count", but the problem with this is that I could only have one IndicatorID when in fact I have two seperate indicators.
My next solution was to create two separate tables. No problem. Easy as pie. However, I would like to have a single form that enters data into both tables at the same time: users would select the neighborhood, the year, and then add values for "value sold" and "# sold". Now, I'm lost. Really not sure how to proceed. Any insight?
I work with a database of neighborhood indicators (health, crime, etc). Basically, I have a series of data tables; each table holds time-series data for a single indicator or a few related indicators. For each indicator, I have a primary key that is related to a table of IndicatorIDs. The IndicatorID table of course has an "IndicatorID" field and an "IndicatorName" field with text describing the indicator. Two of the indicators are "value of houses sold" and "# of houses sold". Up to this point I have been structuring tables with the following fields:
"ID" (autonumber), "IndicatorID", "neighborhood", "year", and "value/count"
As for the housing sales data, I run into a problem (I think) b/c I shouldn't put "value sold" in the same field as "# sold", right, because one is currency and one is count? So, my thought was that I would have two fields: "value" and "count", but the problem with this is that I could only have one IndicatorID when in fact I have two seperate indicators.
My next solution was to create two separate tables. No problem. Easy as pie. However, I would like to have a single form that enters data into both tables at the same time: users would select the neighborhood, the year, and then add values for "value sold" and "# sold". Now, I'm lost. Really not sure how to proceed. Any insight?