Solved

Design Question

Posted on 2014-09-19
7
192 Views
Last Modified: 2014-09-19
I have a table:  tblDisbursements
and each disbursement is divided up between 3 banks.

example:
100 disbursement:  25: Bank A, 50: Bank B, 25: Bank C

Would an expert have 3 separate records for each disbursement or have only one record for 100 and then click a button and detail the exact amount per bank?  

thank you
0
Comment
Question by:pdvsa
7 Comments
 

Author Comment

by:pdvsa
ID: 40332563
fyi:  all disbursements are on the same date in this example.

see example form:

Form_Disbursements
0
 

Author Comment

by:pdvsa
ID: 40332568
You can see that I dont have a way to show a total amount if I break up the disbursements per bank, which makes me think that I should only have one record for the total amount of disbursement and detail it some other place (like a button leading me to another form).
0
 
LVL 14

Assisted Solution

by:ThomasMcA2
ThomasMcA2 earned 167 total points
ID: 40332676
Use one record per disbursement. That way, if the number of disbursements ever change, all you have to do is add another record.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:pdvsa
ID: 40332693
OK.  How do you suggest to detail various splits between the banks?
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 167 total points
ID: 40332703
3 records

Disb_Num  Disb_Date  Disb_Org   Disb_Amt
1                   9/19/14      Bank A         25
1                   9/19/14      Bank B         50
1                   9/19/14      Bank C         25

As Thomas stated, your business rules might change and you could end up with 2 or 6 banks.  If that were the case, you would have to build your table with as many columns as you might eventually need.

Relational databases are designed around organizing your data vertically (rows).  You should never have two or more columns with similar data in your table, if that ever occurs, you need to modify the structure so that you have three columns
a.  A column that references the row that the data belongs to (the foreign key)
b.  A column that describes the data (what would normally be your column headers in a spreadsheet)
c.  A column for your actual data value.

This would all be in a table of its own, so in your case, you might have tbl_Disbursements, which has a Disb_Num, Disb_Date, and other fields.  and then you would have tbl_Disbursement_Amounts with Fields Disb_Num, Bank#, Amount
0
 
LVL 34

Assisted Solution

by:PatHartman
PatHartman earned 166 total points
ID: 40333273
You can see that I dont have a way to show a total amount if I break up the disbursements per bank
Add a total at the bottom of the form/report.  Since you are using a data sheet style form, you have the option of adding totals by just clicking a couple of buttons.  The sample I posted has a count but you can do sum/avg etc.DS total line
0
 

Author Closing Comment

by:pdvsa
ID: 40333351
thank you.  I am on the right path now.  I am going to follow what Dale said.  I will make another table with the amounts and link them.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now