From: Laura1 via AccessMonster.com on
I am trying to design a budget database and I want to have consistent
categories and expense.

I have a table with Category and Expense It looks something like this:

Category Expense
Overhead Electrcity
Overhead Internet
Employee Salary
Employee Commision

I want to creat another table where the entires will be made but want to
force these categories. I can get one colum to appear in the table Example
Internet but I can't see in the table what category it rolls up to, I see it
when I choose the expense but not after. Is there a way to populate this
table with those values and keep them together, in otherwords if you choose
internet it automatically populates Overhead and you can't change it unless
the category expense table is changed.

Thank you!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201004/1

From: J_Goddard via AccessMonster.com on
Hi -

Your category/expense table really should have a single-field primary key, e.
g. account number. If you had that, then all you would need in the other
table is the account number as a foreign key back to the Category/Expense
table. You could the link the two tables in a query for reporting purposes;
grouping on Category in a report would provide the rolloup you are looking
for.

The data entry form would only need the Expenses listed in a combo box, with
the bound column being the account number - the category is also determined
by the account number.

John


Laura1 wrote:
>I am trying to design a budget database and I want to have consistent
>categories and expense.
>
>I have a table with Category and Expense It looks something like this:
>
>Category Expense
>Overhead Electrcity
>Overhead Internet
>Employee Salary
>Employee Commision
>
>I want to creat another table where the entires will be made but want to
>force these categories. I can get one colum to appear in the table Example
>Internet but I can't see in the table what category it rolls up to, I see it
>when I choose the expense but not after. Is there a way to populate this
>table with those values and keep them together, in otherwords if you choose
>internet it automatically populates Overhead and you can't change it unless
>the category expense table is changed.
>
>Thank you!

--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201004/1

From: Laura1 via AccessMonster.com on
Thank you!

J_Goddard wrote:
>Hi -
>
>Your category/expense table really should have a single-field primary key, e.
>g. account number. If you had that, then all you would need in the other
>table is the account number as a foreign key back to the Category/Expense
>table. You could the link the two tables in a query for reporting purposes;
>grouping on Category in a report would provide the rolloup you are looking
>for.
>
>The data entry form would only need the Expenses listed in a combo box, with
>the bound column being the account number - the category is also determined
>by the account number.
>
>John
>
>>I am trying to design a budget database and I want to have consistent
>>categories and expense.
>[quoted text clipped - 16 lines]
>>
>>Thank you!
>

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201004/1

From: PieterLinden via AccessMonster.com on
Laura1 wrote:
>I am trying to design a budget database and I want to have consistent
>categories and expense.
>
>I have a table with Category and Expense It looks something like this:
>
>Category Expense
>Overhead Electrcity
>Overhead Internet
>Employee Salary
>Employee Commision
>
>I want to creat another table where the entires will be made but want to
>force these categories. I can get one colum to appear in the table Example
>Internet but I can't see in the table what category it rolls up to, I see it
>when I choose the expense but not after. Is there a way to populate this
>table with those values and keep them together, in otherwords if you choose
>internet it automatically populates Overhead and you can't change it unless
>the category expense table is changed.
>
>Thank you!

You don't want to store it... you can show it on your data entry form, if
you want. (You're not trying to enter your data directly into a table, are
you? If you are, DON'T!) Okay, assuming you're picking the Expense type
from a combobox,- call it cboExpense - do this...
1. set the rowsource for the combobox to

SELECT Expense, Category
FROM ExpenseList
ORDER BY Expense;

2. set the Column Count of the combobox to 2.
3. Set the ColumnWidths to 1;0 (the first one can be *any* width you want,
I'm just using 1" as an example. The second column will be invisible (width
= 0).
4. drop an unbound textbox onto your form ( don't select a field beforehand).

5. Set the control source to =cboExpense.Column(1).

and that's pretty much it. You can *see* the category, but you can't edit it.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201005/1