ledgerr.rob
Registered User.
- Local time
- Today, 04:08
- Joined
- Jun 3, 2012
- Messages
- 68
Hello All,
I'm trying my hand at developing a personal database for my wife and I. This would be a monthly comparison of projected expenses and actual costs.
Workflow
At the beginning of the month enter my projected expenses. Each expense would be assigned a general 'category' and a more specific 'item.' Throughout the month we would enter our individual actual costs. At the end of the month I would like a comparison of the those figures, whether we were under or over budget.
I would like to keep these separated by account owner (ie 1.wife, 2. me)
Design
tblAccount
AccountID-Autonumber(pk)
Account-Text
tblCategories
CategoryId-Autonumber(pk)
Category-Text
tblItem
ItemId-Autonumber(pk)
Item-Text
tblProjected
ProjectedID-Autonumber(pk)
Date-Date/Time
Account-Number(fk)
CategoryID-number(fk)
ItemID-number(fk)
Amount-number/currency
tblActual
ActualID-Autonumber(pk)
Date-Date/Time
Account-Number(fk)
CategoryID-Number(fk)
ItemID-Number(fk)
Amount-number/currency
Description-text
Querries
Not to be jumping ahead too much as I only have this on paper, but I think I can summarize the multiple entries of the actual costs by Category and Item. Then I think I can perform a subtraction from the projected expenses by date range(desired month). But how can i ensure that the subtraction/comparison is performed on equal category/item "pairs"?
For Example
Projected Expenses
Food-Groceries: $200
Food-Dining Out: $75
Actual Expense (Summarized Entries)
Food-Groceries: $225
Food-Dining Out: $100
Balance
Food-Groceries ($-25)
Food-Dining Out ($-25)
My question here is I believe in order to do this, the table sizes/schema have to be matching. I could and probably will have costs not foreseen at the beginning of the month. Is this the type of situation that can create a cartession product?
I've just been doing some microsoft training videos and have an old MS Access 97 book that i've been going through for a couple weeks thinking about this.
Thought i'd run this by some folks before i took off down a wrong path too far. I appreciate any comments you would have on any of this.
Thank you,
rob
I'm trying my hand at developing a personal database for my wife and I. This would be a monthly comparison of projected expenses and actual costs.
Workflow
At the beginning of the month enter my projected expenses. Each expense would be assigned a general 'category' and a more specific 'item.' Throughout the month we would enter our individual actual costs. At the end of the month I would like a comparison of the those figures, whether we were under or over budget.
I would like to keep these separated by account owner (ie 1.wife, 2. me)
Design
tblAccount
AccountID-Autonumber(pk)
Account-Text
tblCategories
CategoryId-Autonumber(pk)
Category-Text
tblItem
ItemId-Autonumber(pk)
Item-Text
tblProjected
ProjectedID-Autonumber(pk)
Date-Date/Time
Account-Number(fk)
CategoryID-number(fk)
ItemID-number(fk)
Amount-number/currency
tblActual
ActualID-Autonumber(pk)
Date-Date/Time
Account-Number(fk)
CategoryID-Number(fk)
ItemID-Number(fk)
Amount-number/currency
Description-text
Querries
Not to be jumping ahead too much as I only have this on paper, but I think I can summarize the multiple entries of the actual costs by Category and Item. Then I think I can perform a subtraction from the projected expenses by date range(desired month). But how can i ensure that the subtraction/comparison is performed on equal category/item "pairs"?
For Example
Projected Expenses
Food-Groceries: $200
Food-Dining Out: $75
Actual Expense (Summarized Entries)
Food-Groceries: $225
Food-Dining Out: $100
Balance
Food-Groceries ($-25)
Food-Dining Out ($-25)
My question here is I believe in order to do this, the table sizes/schema have to be matching. I could and probably will have costs not foreseen at the beginning of the month. Is this the type of situation that can create a cartession product?
I've just been doing some microsoft training videos and have an old MS Access 97 book that i've been going through for a couple weeks thinking about this.
Thought i'd run this by some folks before i took off down a wrong path too far. I appreciate any comments you would have on any of this.
Thank you,
rob