473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Need help on access database design and queries

Hi All, I知 working on a small project for loan Financial service company. I知 developing a Schedule Entry System . It has a Leasee who takes the loan to purchase products, supplier who supplies products
There are 4 Lease Types monthly, quarterly , half yearly and yearly. There 3 type of Purchase types like local (lease is a local from local state ), interstate and import. This is because each purchase type ie local, interstate and import have different tax rates.
Company will give loan to purchase products. A agreement between company and leassee to take loan and repay the amount over agreed period .It is called schedule.Each schedule has start date and end date. Start date is what start of first EMI and last EMI ends on end date. Maximum EMI for Monthly is 108, quarterly is 40 , halfyearly is 20 and yearly is 10 EMIs.

Leasee details and Suppliers details are master tables where date is added prior to Add Schedule form.
In Add schedule form only I need to select Leassee and suppliers. Along with this in Add Schedule form I will select Lease type (Ex: Monthly) from combo box, no of EMI (ex:60), startdate , based on EMI end date is calculated automatically, Lease Amount (which is the sum of all EMIs)
Lease may buy different products from different supplies so I have a invoice table for supplier , here sum of invoice amount of all supplier is equal to lease amount

My Database design as below,


tblLeeasse Details
nLesseeId
txtLesseeName
txtContractNumber
txtLesseeAddress1
txtLesseeCity
txtLesseeState
txtLesseeCountry
txtLesseeEmail

`tblSupplierDetails
nSupplId
txtSupplName
txtSupplTinNum
txtSupplAddress1
txtSupplCity
txtSupplState
txtSupplCountry
txtSupplEmail

tblSchedule
nScheduleId
txtScheduleNumber
nLesseeId
txtLeaseTyp
numOfEMI
dtmRentalStDate
dtmRentalEndDate
nLeaseRent
nCurrenyType
nCurrencyRate
nPurType
nBasicValue0
nTaxRate0
nTaxAmt0
nBasicValue4
nTaxRate4
nTaxAmt4
nBasicValue12
nTaxRate12
nTaxAmt12
nTotalInvoiceValue
nTotalTaxAmt
dtmRegDate
txtRemarks tblEMI
nEMIID
nScheduleId
cEMI1
cEMI2
cEMI3
cEMI4
cEMI5
.
.
.
cEMI50
.
.
cEMI100
.
.
.
cEMI108



Here I知 giving sample data of two important table where I知 having problem. Some of the fields I have left due to space problem .

tblSchedule

1st Entry 2nd Entry

nScheduleId 11 12
txtScheduleNumber 39 57
nLesseeId 27 27
txtLeaseTyp monthly monthly
numOfEMI 60 60
dtmRentalStDate 29-Sep-06 30-Nov-06
dtmRentalEndDate 29-Aug-11 30-Oct-11
nLeaseRent 10520 1600
nCurrenyType INR INR
nCurrencyRate 1 1
nPurType InterState InterState
nBasicValue0 0 0
nTaxRate0 0 0
nTaxAmt0 0 0
nBasicValue4 535645 197346
nTaxRate4 4 4
nTaxAmt4 21426 7894
nBasicValue12 0 0
nTaxRate12 12.5 12.5
nTaxAmt12 0 0
nBasicValueOth 0 0
nTaxRateOth 0 0
nTaxAmtOth 0 0
nTotalInvoiceValue 557071 205240
nTotalTaxAmt 21426 7894
dtmRegDate 13-Oct-10 13-Oct-10
txtRemarks 5fdfd 205240


tblEMI

nEMIID 11 12
nschId 11 12
cEMI1 $10,520.00 $1,600.00
cEMI2 $10,520.00 $1,600.00
cEMI3 $10,520.00 $1,600.00
cEMI4 $10,520.00 $1,600.00
cEMI5 $10,520.00 $1,600.00
cEMI6 $10,520.00 $1,600.00
cEMI7 $10,520.00 $1,600.00
cEMI8 $10,520.00 $1,600.00
cEMI9 $10,520.00 $1,600.00
cEMI10 $10,520.00 $1,600.00
cEMI11 $10,520.00 $1,600.00
cEMI12 $10,520.00 $1,600.00
cEMI13 $10,520.00 $1,600.00
cEMI14 $10,520.00 $1,600.00
cEMI15 $10,520.00 $1,600.00
cEMI16 $10,520.00 $1,600.00
cEMI17 $10,520.00 $1,600.00
cEMI18 $10,520.00 $1,600.00
cEMI19 $10,520.00 $1,600.00
cEMI20 $10,520.00 $1,600.00
cEMI21 $10,520.00 $1,600.00
cEMI22 $10,520.00 $1,600.00
cEMI23 $10,520.00 $1,600.00
cEMI24 $10,520.00 $1,600.00
cEMI25 $10,520.00 $1,600.00
cEMI26 $10,520.00 $1,600.00
cEMI27 $10,520.00 $1,600.00
cEMI28 $10,520.00 $1,600.00
cEMI29 $10,520.00 $1,600.00
cEMI30 $10,520.00 $1,600.00
cEMI31 $10,520.00 $1,600.00
cEMI32 $10,520.00 $1,600.00
cEMI33 $10,520.00 $1,600.00
cEMI34 $10,520.00 $1,600.00
cEMI35 $10,520.00 $1,600.00
cEMI36 $10,520.00 $1,600.00
cEMI37 $10,520.00 $1,600.00
cEMI38 $10,520.00 $1,600.00
cEMI39 $10,520.00 $1,600.00
cEMI40 $10,520.00 $1,600.00
cEMI41 $10,520.00 $1,600.00
cEMI42 $10,520.00 $1,600.00
cEMI43 $10,520.00 $1,600.00
cEMI44 $10,520.00 $1,600.00
cEMI45 $10,520.00 $1,600.00
cEMI46 $10,520.00 $1,600.00
cEMI47 $10,520.00 $1,600.00
cEMI48 $10,520.00 $1,600.00
cEMI49 $10,520.00 $1,600.00
cEMI50 $10,520.00 $1,600.00
cEMI51 $10,520.00 $1,600.00
cEMI52 $10,520.00 $1,600.00
cEMI53 $10,520.00 $1,000.00
cEMI54 $10,520.00 $1,600.00
cEMI55 $10,000.00 $1,600.00
cEMI56 $10,520.00 $1,600.00
cEMI57 $10,520.00 $1,600.00
cEMI58 $10,520.00 $1,600.00
cEMI59 $10,520.00 $1,600.00
cEMI60 $10,520.00 $1,600.00
cEMI61 $0.00 $0.00
cEMI62 $0.00 $0.00
cEMI63 $0.00 $0.00
cEMI64 $0.00 $0.00
cEMI65 $0.00 $0.00
cEMI66 $0.00 $0.00
cEMI67 $0.00 $0.00
cEMI68 $0.00 $0.00
cEMI69 $0.00 $0.00
cEMI70 $0.00 $0.00
cEMI71 $0.00 $0.00
cEMI72 $0.00 $0.00
cEMI73 $0.00 $0.00
cEMI74 $0.00 $0.00
cEMI75 $0.00 $0.00
cEMI76 $0.00 $0.00
cEMI77 $0.00 $0.00
cEMI78 $0.00 $0.00
cEMI79 $0.00 $0.00
cEMI80 $0.00 $0.00
cEMI81 $0.00 $0.00
cEMI82 $0.00 $0.00
cEMI83 $0.00 $0.00
cEMI84 $0.00 $0.00
cEMI85 $0.00 $0.00
cEMI86 $0.00 $0.00
cEMI87 $0.00 $0.00
cEMI88 $0.00 $0.00
cEMI89 $0.00 $0.00
cEMI90 $0.00 $0.00
cEMI91 $0.00 $0.00
cEMI92 $0.00 $0.00
cEMI93 $0.00 $0.00
cEMI94 $0.00 $0.00
cEMI95 $0.00 $0.00
cEMI96 $0.00 $0.00
cEMI97 $0.00 $0.00
cEMI98 $0.00 $0.00
cEMI99 $0.00 $0.00
cEMI100 $0.00 $0.00
cEMI101 $0.00 $0.00
cEMI102 $0.00 $0.00
cEMI103 $0.00 $0.00
cEMI104 $0.00 $0.00
cEMI105 $0.00 $0.00
cEMI106 $0.00 $0.00
cEMI107 $0.00 $0.00
cEMI108 $0.00 $0.00


Everything ok for me except that I知 not able to calculate total of the EMI under each month of all schedules .For example, Consider that When I see the report from current month pending EMI (ex Oct 2010) I have see the previous months EMI due, so in report EMI start from sep 2010.

Considering this ,The Sep 2010 due for scheduleid 11 is 55th EMI and that of schedule id 12 th is 53rd EMI
So I want to calculate sum of 55th EMI of schedule id 11 and 53rd EMI of schedule id 12 . Currently I have struggling here.
Please anybody help me how do this. Is there any problem with my database?
Thanks all in advance.
Attached Files
File Type: zip schedule.zip (289.6 KB, 66 views)
Oct 15 '10 #1
0 1197

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rushikesh | last post by:
I am designing a WEB BASED Accounting Software with ASP and SQL Server. For this I need some help for the Database design. My design is as follows. I)User table: User_id, UserName..... Users...
3
by: Jeff Brown | last post by:
Where would be the best place to find some good resources that cover more than just linking 2 -3 tables? I know how to link them and i get my data set up right i think but then i am not sure about...
2
by: Atreju | last post by:
I apologize in advance for the x-post, but I am really not sure where this would best be addressed. I am designing a database in MSAccess for which I want to make the front-end in VB. I have...
25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
3
by: boyleyc | last post by:
Hi I am working on a Access database and have run into a design problem. Bit of background - This is how a booking works. A booking is taken from a client and a date/time begining of booking...
2
Lee
by: Lee | last post by:
I want to create a database of Questions and their related information and link it to an other table of answers. Each question would have 4 possible answers. How do I relate it so that I can...
4
by: beatdream | last post by:
I am designing a database to handle different kinds of products ... and these products can have different properties...for example, a trouser can be specified by the width, length, color, and other...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
1
by: titli | last post by:
Hi All, Please tell me the best solution to implemenet security in access databases , to save the tables, queries, forms , reports as well as the VBA code from user access. The users of the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.