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

different rates for diffrent categories

Hello all,

I have just created a database (partially) which will bill customers for
work done. However I am stuck when it is comes to different rates for
different works.

REQUIRED: What I intent to have is a form in which I will enter the customer
order no: and then in the subform choose the work done and then based on the
work input calculate the rates and have it billed to the customer. I have no
idea on how to have the rates calculated based on the type of work done and
the number of days.

The fields which will be filled are 'Type Of work' done , also SubCategory
...such as whether ....'new job'; 'edit an old job', 'destroy a job done',
'get help from outside' etc ....for each of these there are different rates.
New job for first day free and later on charged ....similarly editing job
chargable at a single rate for the first day ..then at a particular rate for
the next day.....destroy job done based on the days worked and no of
employees worked at constant rate.....External help done charges. Each
customer bill may also have all of the categories embedded in it.

Bill 100
-------
If work done for CustomerA is new job and for one day then charge A 120$.
Also, work done is Edit job then charge XX based on number of days...etc
Total invoice == Sum of all this.

Please help me out and do let me know if you are having any problems in
understanding.

Regards,
Z
Nov 13 '05 #1
1 1322
The key here is in your statement "....different rates for different works".
You need to build tables to model this statement. But first you need to
analyze exactly what you are saying here. If there multiple works and any
work can have its own rate, albeit a single rate for that work, then you
need to include the rate in your Works table. Such as:
TblWork
WorkID
WorkDesc
Rate
If there are multiple works and any work may have multiple rates, you have a
one-to-many relationship and you need a separate work and rate tables such
as:

TblWork
WorkID
WorkDesc

TblRate
RateID
WorkID
<Something here to distinguish one rate from another for the same work>
Rate
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Zurghew" <An******@avoidspam.please> wrote in message
news:co*********@news-dxb.emirates.net.ae...
Hello all,

I have just created a database (partially) which will bill customers for
work done. However I am stuck when it is comes to different rates for
different works.

REQUIRED: What I intent to have is a form in which I will enter the customer order no: and then in the subform choose the work done and then based on the work input calculate the rates and have it billed to the customer. I have no idea on how to have the rates calculated based on the type of work done and the number of days.

The fields which will be filled are 'Type Of work' done , also SubCategory ..such as whether ....'new job'; 'edit an old job', 'destroy a job done',
'get help from outside' etc ....for each of these there are different rates. New job for first day free and later on charged ....similarly editing job
chargable at a single rate for the first day ..then at a particular rate for the next day.....destroy job done based on the days worked and no of
employees worked at constant rate.....External help done charges. Each
customer bill may also have all of the categories embedded in it.

Bill 100
-------
If work done for CustomerA is new job and for one day then charge A 120$.
Also, work done is Edit job then charge XX based on number of days...etc
Total invoice == Sum of all this.

Please help me out and do let me know if you are having any problems in
understanding.

Regards,
Z

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eddie | last post by:
Hi to all I am building a database to track project expenses information. My database has 4 main tables, Employees, Activity, project info and rates. We add a project and track activities on...
5
by: Eddie | last post by:
I have an Access database that tracks project information. The database is very simple, except for 1 small aspect. Some background: 4 Tables - Project information, Employees, activity and pay...
0
by: Zurghew | last post by:
Hi all, Second post please please help me here. I need to have a form which will allow me to select a particular type of service through a combo box and based on that value choose another...
1
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from...
2
by: Chad Richardson | last post by:
I would like a single SQL to return all employee's total billable compensation for a year. Their billable rates change throughout the year so under the employee table (one), there is a compensation...
0
by: Udi | last post by:
Hi All, I have several types of messages that I need to log to several files (a.log, b.log and c.log). In addition, there's an additional "dirty" log file (Main.log) that collects all types of...
3
by: milam | last post by:
Greetings, I would like to use a query result as a column name in another query, I can't seem to get this to work using Subqueries. Is there a good way to do this? Example: Table...
7
by: Michel Couche | last post by:
Hello, I am working on a project for a potential customer. The project will basically involve an ASP.Net 2.0 application and a database (ideally MS SQL). The customer has already a hosting...
46
by: Phil Reynolds | last post by:
I have Access 2000 and 2003 on my development machine. My client only has Access 2000. When I develop for this client, I run Access 2000. However, my code requires that I have the Microsoft Word...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.