A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

subaccounts



 
 
Thread Tools Display Modes
  #1  
Old October 7th, 2008, 08:54 PM posted to microsoft.public.access.tablesdbdesign
G
external usenet poster
 
Posts: 170
Default subaccounts

I am working on a asset database and was wondering the best way to create
Main - sub - sub accounts for the types of assets?
  #2  
Old October 7th, 2008, 11:44 PM posted to microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default subaccounts

TblAssetAccount
AssetAccountID
AssetAccount

TblAssetSubAccount
AssetSubAccountID
AssetAccountID
AssetSubAccount

TblAssetSubSubAccount
AssetSubSubAccountID
AssetSubAccountID
AssetSubSubAccount


Steve


"G" wrote in message
...
I am working on a asset database and was wondering the best way to create
Main - sub - sub accounts for the types of assets?



  #3  
Old October 8th, 2008, 12:01 AM posted to microsoft.public.access.tablesdbdesign
G
external usenet poster
 
Posts: 170
Default subaccounts

Thanks, G.

"Steve" wrote:

TblAssetAccount
AssetAccountID
AssetAccount

TblAssetSubAccount
AssetSubAccountID
AssetAccountID
AssetSubAccount

TblAssetSubSubAccount
AssetSubSubAccountID
AssetSubAccountID
AssetSubSubAccount


Steve


"G" wrote in message
...
I am working on a asset database and was wondering the best way to create
Main - sub - sub accounts for the types of assets?




  #4  
Old October 8th, 2008, 12:09 AM posted to microsoft.public.access.tablesdbdesign
John... Visio MVP
external usenet poster
 
Posts: 900
Default subaccounts

"G" wrote in message
...
I am working on a asset database and was wondering the best way to create
Main - sub - sub accounts for the types of assets?



What do you really need? Is it a unique account number for an asset that has
several layers? A main account number containing a sub account number that
could contain further divisions. In that case, the asset needs a unique key
and should have secondary keys for the account, sub account and sub-sub
account.

John... Visio MVP


  #5  
Old October 8th, 2008, 02:07 AM posted to microsoft.public.access.tablesdbdesign
Graham Mandeno
external usenet poster
 
Posts: 593
Default subaccounts

Hi G

I think Steve's suggestion is rather inflexible. What if you need more than
three levels? What if you want to reclassify an account as being somewhere
else in the hierarchy?

I would favour a structure something like this:

AccID (primary key)
AccName
AccParent (null for top-level accounts, otherwise the ID of the parent)
AccOrder (the numeric order that the account should be listed among its
siblings)
AccPostable (boolean - whether or not transactions may be posted to this
account [false for an account that is only a header])
--
Good Luck :-)

Graham Mandeno [Access MVP]
Auckland, New Zealand


"G" wrote in message
...
Thanks, G.

"Steve" wrote:

TblAssetAccount
AssetAccountID
AssetAccount

TblAssetSubAccount
AssetSubAccountID
AssetAccountID
AssetSubAccount

TblAssetSubSubAccount
AssetSubSubAccountID
AssetSubAccountID
AssetSubSubAccount


Steve


"G" wrote in message
...
I am working on a asset database and was wondering the best way to
create
Main - sub - sub accounts for the types of assets?






  #6  
Old October 8th, 2008, 02:58 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default subaccounts

Go with Graham's method. It is much better.
As Graham said, the other suggestion, although workable, is inflexible.

"G" wrote in message
...
Thanks, G.

"Steve" wrote:

TblAssetAccount
AssetAccountID
AssetAccount

TblAssetSubAccount
AssetSubAccountID
AssetAccountID
AssetSubAccount

TblAssetSubSubAccount
AssetSubSubAccountID
AssetSubAccountID
AssetSubSubAccount


Steve


"G" wrote in message
...
I am working on a asset database and was wondering the best way to
create
Main - sub - sub accounts for the types of assets?






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.