dataplayer
Programmer
I have a table call tblUnits that has info of all the housing units, such as unit_IDs, numbers of bedrooms, living rooms, baths, kitchens, hallways, and other areas in each unit. Now, I need to generate another table from the unit info, a table that list all the areas as the records.
For example, in tblUnits:
Unit_ID#1, #Bedroom = 8, #LV=2,#bath=3
Unit_ID#2, #Bedroom = 5, #LV=1,#bath=2
Unit_ID#3, #Bedroom = 3, #LV=1,#bath=1
Now, the output table "tblAreaList" should be
Area_ID#1, Unit_ID#1, AreaName = U#1_Bed#1
Area_ID#2, Unit_ID#1, AreaName = U#1_Bed#2
...
Area_ID#8, Unit_ID#1, AreaName = U#1_Bed#8
Area_ID#9, Unit_ID#1, AreaName = U#1_LV#1
Area_ID#10, Unit_ID#1, AreaName = U#1_LV#2
...
Area_ID#14, Unit_ID#2, AreaName = U#2_Bed#1
...
Area_ID#26, Unit_ID#3, AreaName = U#3_bath#1.
Basically, it generates areas record from unit to unit. The output tblAreaList must be able to add a few more fields later for data entry. I am familiar with common calculation within a field (no need to explain this part). But I don't know how to generate records automatically based on calculation results. I know how to use make-table query, but it does not generate records.
Any hint or info would be highly appreciated. Thanks.
Frank
For example, in tblUnits:
Unit_ID#1, #Bedroom = 8, #LV=2,#bath=3
Unit_ID#2, #Bedroom = 5, #LV=1,#bath=2
Unit_ID#3, #Bedroom = 3, #LV=1,#bath=1
Now, the output table "tblAreaList" should be
Area_ID#1, Unit_ID#1, AreaName = U#1_Bed#1
Area_ID#2, Unit_ID#1, AreaName = U#1_Bed#2
...
Area_ID#8, Unit_ID#1, AreaName = U#1_Bed#8
Area_ID#9, Unit_ID#1, AreaName = U#1_LV#1
Area_ID#10, Unit_ID#1, AreaName = U#1_LV#2
...
Area_ID#14, Unit_ID#2, AreaName = U#2_Bed#1
...
Area_ID#26, Unit_ID#3, AreaName = U#3_bath#1.
Basically, it generates areas record from unit to unit. The output tblAreaList must be able to add a few more fields later for data entry. I am familiar with common calculation within a field (no need to explain this part). But I don't know how to generate records automatically based on calculation results. I know how to use make-table query, but it does not generate records.
Any hint or info would be highly appreciated. Thanks.
Frank