P
Pat
I am trying to design a form/subform where the user
enters energy sales with various companies throughout the
day, similar to a sales and purchase form. The main form
has the company info and date and MasterID, and the
subform has the associated megawatts purchased/sold per
hour and price, along with the SalesID(PK) and linked to
the main form with MasterID(FK). It seems to work fine,
but I would like the subform to show all 24 hours in a
day in the HourEnding field, so the user doesn't always
have to enter the hours 0100 - 2400 every time. Another
words, 24 records would auto fill for every transaction
so the user could just enter quantities in the megawatt
and price fields.
Also, I'm not sure if this is the best way to handle the
data entry since not all hours will necessarily have data
associated with it so there will be several records with
zeros in the megawatts and price fields. I tried
creating just one table with company name, date, and each
hour as a field, which also worked, but it ends up being
a lot of fields in the table (i.e.: 24 fields for each
megawatt hour: MW1, MW2.MW24, along with 24 additional
fields for the associated prices: Price1, Price2.
Price24) besides the calculations to sum the total days
megawatts in the reports (MW1 + MW2.MW24). This also did
not seem like proper relational database structure ?
Any suggestions?
Tia,
Pat
enters energy sales with various companies throughout the
day, similar to a sales and purchase form. The main form
has the company info and date and MasterID, and the
subform has the associated megawatts purchased/sold per
hour and price, along with the SalesID(PK) and linked to
the main form with MasterID(FK). It seems to work fine,
but I would like the subform to show all 24 hours in a
day in the HourEnding field, so the user doesn't always
have to enter the hours 0100 - 2400 every time. Another
words, 24 records would auto fill for every transaction
so the user could just enter quantities in the megawatt
and price fields.
Also, I'm not sure if this is the best way to handle the
data entry since not all hours will necessarily have data
associated with it so there will be several records with
zeros in the megawatts and price fields. I tried
creating just one table with company name, date, and each
hour as a field, which also worked, but it ends up being
a lot of fields in the table (i.e.: 24 fields for each
megawatt hour: MW1, MW2.MW24, along with 24 additional
fields for the associated prices: Price1, Price2.
Price24) besides the calculations to sum the total days
megawatts in the reports (MW1 + MW2.MW24). This also did
not seem like proper relational database structure ?
Any suggestions?
Tia,
Pat