Results 1 to 15 of 15
  1. #1
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34

    Database design question using one form to many tables that are not related.


    I am building a budget tracking database, I will have as many as 12 different spending tables
    to use for tracking my expenses; example, Groceries, Autos, Recreation, so one. I however want
    to use one entry form and be able to select from the form the table (category) I will be updating.
    Any suggestions how I can do this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why do you have a table for each expense? This means if you add a new expense category have to modify design of tables, queries, forms, reports.

    Try a form with a tab control. Put a subform for each expense on pages of the tab control.

    Have you considered off-the-shelf software instead of reinventing the wheel? I have used Quickbooks. It is a relatively inexpensive program and will track expenses, although I don't remember if it has budget tracking component.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    I am learning Access for personal interest, I have made some small simple database systems now I want to expand to something more complicated.

    Quote Originally Posted by June7 View Post
    Why do you have a table for each expense? This means if you add a new expense category have to modify design of tables, queries, forms, reports.

    Try a form with a tab control. Put a subform for each expense on pages of the tab control.

    Have you considered off-the-shelf software instead of reinventing the wheel? I have used Quickbooks. It is a relatively inexpensive program and will track expenses, although I don't remember if it has budget tracking component.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    So why do you feel a separate table for each expense is needed?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    I figured that would be cleaner to do reports and query's on.
    I originally was going to use one table and have a field for the
    Category I don't remember why I change my mind



    Quote Originally Posted by June7 View Post
    So why do you feel a separate table for each expense is needed?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You might find that separating the expenses actually complicates data entry and output design.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I think most experienced developers are going to agree with June7, here! An expense Table, with a 'category' Field, is the practical way to go. To make sure that the correct term is entered, for the expense category, I'd use a Combobox that is Bound to the Field in the underlying Table. This will prevent things like entering Autos, one time, and Auto another time, or even Cars. Having the correct category, for each Record, and a correct date, is all that you should need to pull Reports accurately.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  8. #8
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    I went back to using a field with Category and will experiment with that. I like the idea of using the combobox too.
    Thank You !!!

  9. #9
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    Just ran into the reason I stopped using the Category field and went to separate tables. The
    database is a budget spending database and I have to put a deposit into each Category
    so the spending in one category wont affect the balance of money in another category. I
    still prefer one table idea though! I will quit for now and think of what to try next.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    So you need a table of category budgets and a transactions table for payments.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    Thanks June7, that is a good idea! I looked into linking two tables using many to many but I
    was not able to figure out what I had to do to make the relationship between the two tables
    I have a book I can see if there is more written than the short explanation. I have to figure how
    to make sure this wont lead to an error where a spending or deposit goes to the wrong place.

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Many-to-many requires a third 'junction' table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  13. #13
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    PMFJI,

    I think there is a tutorial concerning business facts,table design, normalization and Entity Relationship Diagramming that could help you put the pieces together, before getting into comboboxes etc.

    see http://www.rogersaccesslibrary.com/T...lationship.zip

  14. #14
    hjnash is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    34
    Thanks for the input, I will check out the link and see what I can learn!

  15. #15
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Database design question
    By audmkamp in forum Database Design
    Replies: 2
    Last Post: 01-21-2013, 01:48 PM
  2. Linked Tables and Query Design Question
    By burrina in forum Database Design
    Replies: 4
    Last Post: 01-06-2013, 01:04 AM
  3. Replies: 5
    Last Post: 12-14-2012, 04:21 PM
  4. Query on related tables question
    By jpkeller55 in forum Access
    Replies: 12
    Last Post: 09-28-2010, 07:18 PM
  5. Query with related tables question
    By jpkeller55 in forum Access
    Replies: 4
    Last Post: 09-25-2010, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums