473,395 Members | 1,689 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,395 software developers and data experts.

Database Mess

I'm creating a new database for an Insurance Firm. I really thought I knew how to do this, but I need some advice. They currently have a "tool" that was created in Excel that works, but is so convoluted and hard to follow (and update) that the decision was made to put it in Access. Right now, they create by using the tool then save it in a folder. We want to be able to keep records and report off the records in Access.

I started the database by going through the Excel tool and pulling out all of the lookup tables and putting them in tables in Access. I sat with the people who currently use the tool to find out what problems they were having and what enhancements they would like to see. I have everything I need, I just have one problem. I can't seem to pull the rates so that I can use them in calculations. I think there may be a better way to set this up so that I can pull the information that I need, but I have reached a mental block and no matter how much I think about it or try to get it to work, I come back to the same roadblocks.

I'm ready to start over if I have to. I just need to know the appropriate way to set up the data so I can use it to do what we need. I've never had problems like this before, and I have set up many applications in the past.

Is there anyone out there who can help me?

I could email the tool and what I have done so far. It's hard to explain over email, but I'm willing to give that a shot too.

Thanks,

Kelly
Aug 27 '08 #1
4 1472
FishVal
2,653 Expert 2GB
...
I can't seem to pull the rates so that I can use them in calculations...
Hello, Kelly.

Could you please explain how those rates are supposed to be obtained.

Regards,
Fish
Aug 27 '08 #2
hjozinovic
167 100+
Kelly I sent you PM.
You can send me the tool and database to have a look.
I have some extra time so I could try to find something helpfull.
Aug 27 '08 #3
Kelly I sent you PM.
You can send me the tool and database to have a look.
I have some extra time so I could try to find something helpfull.
Thank you so much! Both are on the way.

Kelly
Aug 27 '08 #4
NeoPa
32,556 Expert Mod 16PB
...
I can't seem to pull the rates so that I can use them in calculations.
...
The usual way to extract rates from a (presumably tblRates) table is that they would be identified by some ID value.

The ID value is stored in the records of other tables where the rate is needed then the data is accessed via a query. In its simplest form you might have something like :
Table Name = [tblRates]
Field Type Index
Expand|Select|Wrap|Line Numbers
  1. RateID  String(1)  PK
  2. Rate    Numeric
Some simple contents :
[tblRates] Data
Expand|Select|Wrap|Line Numbers
  1. RateID  Rate
  2.   A       0
  3.   B       5
  4.   C      10
  5.   D      25
Table Name = [tblProducts]
Field Type Index
Expand|Select|Wrap|Line Numbers
  1. ProdCode  String      PK
  2. ProdDesc  String(50)
  3. Price     Numeric
  4. VATCode   String(1)   FK
Some simple contents :
[tblProduct] Data
Expand|Select|Wrap|Line Numbers
  1. ProdCode  ProdDesc                   Price  VATCode
  2. AC1000    Paper ...                   3.56     A
  3. AC2000    Paper ...                   4.90     A
  4. BR1040    Office Equipment ...       34.12     B
  5. BZ2010    Office Equipment ...       55.00     B
  6. CD1000    Electronic Consumable ...   9.10     C
  7. CX9800    Electronic Consumable ...  13.49     C
  8. DD0560    Luxury Item ...           135.00     D
  9. DM3320    Luxury Item ...           500.00     D
To expand this to show the rate and the increased price you would join the two tables using a query.
Expand|Select|Wrap|Line Numbers
  1. SELECT tP.ProdCode,
  2.        tP.ProdDesc,
  3.        tP.Price,
  4.        tR.Rate AS VATRate,
  5.        tP.Price * (100 + tR.Rate) / 100 AS VATPrice
  6.  
  7. FROM tblProduct AS tP INNER JOIN
  8.      tblRates AS tR
  9.   ON tP.VATCode=tR.RateID
Giving :
[qryProduct] Results
Expand|Select|Wrap|Line Numbers
  1. ProdCode  ProdDesc                   Price  VATRate  VATPrice
  2. AC1000    Paper ...                   3.56     0         3.56
  3. AC2000    Paper ...                   4.90     0         4.90  
  4. BR1040    Office Equipment ...       34.12     5        35.83
  5. BZ2010    Office Equipment ...       55.00     5        57.75
  6. CD1000    Electronic Consumable ...   9.10    10        10.01
  7. CX9800    Electronic Consumable ...  13.49    10        14.84
  8. DD0560    Luxury Item ...           135.00    25       168.75 
  9. DM3320    Luxury Item ...           500.00    25       625.00
Sep 1 '08 #5

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

Similar topics

1
by: DAVID | last post by:
Hello, With regards to the Connect dialog on Oracle forms 6i via which we can connect to Oracle database, should we use the same functionality on forms run time again? I mean, I want to make a...
62
by: SAN3141 | last post by:
There doesn't seem to be consensus about when to put code in the database or in the middle tier. There was a long discussion about this in an Oracle newsgroup (message ID:...
1
by: toddles666 | last post by:
Hi- I'm having a rather strange problem attempting to create a database. We're attempting to move a database from attached SCSI storage to SAN storage, and when I attempt to create the database...
7
by: Andante.in.Blue | last post by:
Hello everyone! I've been working with a problematic legacy database for a while. While I am still fairly new to Access, the more I work with the database, the more problems I've uncovered. ...
7
by: Alex | last post by:
Hi all, I've been writing in ColdFusion for about 6 years now, and now that we've installed a Sharepoint Portal Server I'm finding that I need to use ASP.Net to make database calls. I'm finding...
15
by: harvey | last post by:
How do I make PHP create a database for mysql please? I can see how to make tables and I have read all the documents I can find but I don't understand how to make the database itself. All...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
7
by: Jonathan Wood | last post by:
I've been given a spec that seems unwieldy to me. As I'm pretty new to DB design, I would appreciated any input this spec. The site has three types of users: ADMIN, RESELLERS, and CLIENTS. The...
10
by: Sharma Neha | last post by:
SqlConnection cn = new SqlConnection(); cn.ConnectionString = "Data Source= ;Database= ;uid= ;pwd= "; cn.Open(); string sqt = "Select status from tracking where no=@o"; SqlCommand cmr = new...
4
by: webandwe | last post by:
Hi I have a field box that will be used for GPS co-ordinates. But the " and ' mess my mysql query up. My code work like this. $a1=$_POST; query = "INSERT INTO information VALUES...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.