J
jason boyer
with respect to this post.
http://www.eggheadcafe.com/software/aspnet/31309039/updating-several-records.aspx
i am working on a database to use in a small town for home water usage tracking and billing. the db is structured with a customer info table and a monthly usage and charges table. there is a relationship setup for the home address field, one to many. kinda like this....
tblCustomerInfo:.....
fName
lName
address
phone
tblMonthlyReadings:....
address
readMonth(Date)
meterReading
paymentAmount
amountBilled
amountPastDue
lateFee
credit
i think what i want to do is carry forward the left over balance or credit. after reading the above post, maybe i should redesign and maybe make a table to just keep a running balance. not sure what to do? any ideas? heres my thoughts...
option 1, use update query or function to fill in tblMonthlyReadings readMonth with the next month and then amountPastDue with any leftover balance. still dont know how i can do this? tried the code on the above post with little results, always errors while calculating the leftover balance.
option 2, make another table for leftover balance for each address, that would change as the months progress. dont know how i would update this value for each customer. then again i would be left without a way to look back at historical values in case of any discrepancies.
any ideas, anybody?
Submitted via EggHeadCafe - Software Developer Portal of Choice
RSA CryptoServiceProvider in .NET -- Demystified!
http://www.eggheadcafe.com/tutorial...b-3cf1cd30d5c0/rsa-cryptoserviceprovider.aspx
http://www.eggheadcafe.com/software/aspnet/31309039/updating-several-records.aspx
i am working on a database to use in a small town for home water usage tracking and billing. the db is structured with a customer info table and a monthly usage and charges table. there is a relationship setup for the home address field, one to many. kinda like this....
tblCustomerInfo:.....
fName
lName
address
phone
tblMonthlyReadings:....
address
readMonth(Date)
meterReading
paymentAmount
amountBilled
amountPastDue
lateFee
credit
i think what i want to do is carry forward the left over balance or credit. after reading the above post, maybe i should redesign and maybe make a table to just keep a running balance. not sure what to do? any ideas? heres my thoughts...
option 1, use update query or function to fill in tblMonthlyReadings readMonth with the next month and then amountPastDue with any leftover balance. still dont know how i can do this? tried the code on the above post with little results, always errors while calculating the leftover balance.
option 2, make another table for leftover balance for each address, that would change as the months progress. dont know how i would update this value for each customer. then again i would be left without a way to look back at historical values in case of any discrepancies.
any ideas, anybody?
Submitted via EggHeadCafe - Software Developer Portal of Choice
RSA CryptoServiceProvider in .NET -- Demystified!
http://www.eggheadcafe.com/tutorial...b-3cf1cd30d5c0/rsa-cryptoserviceprovider.aspx