473,473 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access database Design

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
and a date/time end of booking. A staff member is then sent to the
client. This is stored in a bookings table.

BookingID (Pkey)
clientID
StaffID
dateBegin
timebegin
dateend
timeend

my main problem is with charge rates.

If for example a booking is taken on a friday from 12 noon till 10am
the next day. Charge rates may be from 10am till 5pm at one rate then
increase for the night time and then reduce again at 7am in the
morning.

My other problem is this information needs to be stored incase the
charge rates change and I want to look back over previous bookings but
obviously want to see the price i charged not the price with the
updated charge rates.

Now I know how to calculate the bookings on the fly using a function /
queries etc. My problem is I dont know how to contruct my tables with
out storing masses of data

Help

Thanks in advance

Boyley

Aug 24 '06 #1
3 1537
Suspect you want another table TblCharges

ChargeID Auto PK
BookingID (Fkey)
dateBegin
timebegin
dateend
timeend
ChargeRate

Then you can have as many logs on and off and as many rates as you like for
each booking.

You wont need the date and time information in your TblBookings

Input the info using Booking information (witthout the dates and times) on
the main form and the ons, offs and rates on a subform

HTH

Phil
<bo*****@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
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
and a date/time end of booking. A staff member is then sent to the
client. This is stored in a bookings table.

BookingID (Pkey)
clientID
StaffID
dateBegin
timebegin
dateend
timeend

my main problem is with charge rates.

If for example a booking is taken on a friday from 12 noon till 10am
the next day. Charge rates may be from 10am till 5pm at one rate then
increase for the night time and then reduce again at 7am in the
morning.

My other problem is this information needs to be stored incase the
charge rates change and I want to look back over previous bookings but
obviously want to see the price i charged not the price with the
updated charge rates.

Now I know how to calculate the bookings on the fly using a function /
queries etc. My problem is I dont know how to contruct my tables with
out storing masses of data

Help

Thanks in advance

Boyley

Aug 24 '06 #2
Hi Phil cheers for the reply.

The problem is that charge rates will probably be set for around 3
months at a time.

A booking will come in and startdate/Time finishdate/time be issued.

Staff entering this have no access to the charge rates etc. It needs to
be kept as simple as possible.

I was thinking that per each booking once confirmed, trigger a function
that calculates the charge to the client and payment to the staff
member, and store in the bookings form for later query. (ClientCharge,
StaffPayment)

However I know that no calculations are supposed to be stored in a
table and know that this is not the right way.

Cheres in advance

Chris

Phil Stanton wrote:
Suspect you want another table TblCharges

ChargeID Auto PK
BookingID (Fkey)
dateBegin
timebegin
dateend
timeend
ChargeRate

Then you can have as many logs on and off and as many rates as you like for
each booking.

You wont need the date and time information in your TblBookings

Input the info using Booking information (witthout the dates and times) on
the main form and the ons, offs and rates on a subform

HTH

Phil
<bo*****@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
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
and a date/time end of booking. A staff member is then sent to the
client. This is stored in a bookings table.

BookingID (Pkey)
clientID
StaffID
dateBegin
timebegin
dateend
timeend

my main problem is with charge rates.

If for example a booking is taken on a friday from 12 noon till 10am
the next day. Charge rates may be from 10am till 5pm at one rate then
increase for the night time and then reduce again at 7am in the
morning.

My other problem is this information needs to be stored incase the
charge rates change and I want to look back over previous bookings but
obviously want to see the price i charged not the price with the
updated charge rates.

Now I know how to calculate the bookings on the fly using a function /
queries etc. My problem is I dont know how to contruct my tables with
out storing masses of data

Help

Thanks in advance

Boyley
Aug 25 '06 #3
OK, Chris

Another Table

TblChargeRates

ChargeRatesID Auto
ChargeRate Currency
AppliesFrom Date
AppliesTo Date

Then on the subform you need to set the OnInsert event to something like

ChargeRate.DefaultValue = DLast("ChargeRate","ChargeRates")

This will put the latest charge rate in as the last rate found in the
ChargeRate Table, but can be overridden.

I,m off sailing now and won't be back till Tuesdat

Phil

<bo*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi Phil cheers for the reply.

The problem is that charge rates will probably be set for around 3
months at a time.

A booking will come in and startdate/Time finishdate/time be issued.

Staff entering this have no access to the charge rates etc. It needs to
be kept as simple as possible.

I was thinking that per each booking once confirmed, trigger a function
that calculates the charge to the client and payment to the staff
member, and store in the bookings form for later query. (ClientCharge,
StaffPayment)

However I know that no calculations are supposed to be stored in a
table and know that this is not the right way.

Cheres in advance

Chris

Phil Stanton wrote:
>Suspect you want another table TblCharges

ChargeID Auto PK
BookingID (Fkey)
dateBegin
timebegin
dateend
timeend
ChargeRate

Then you can have as many logs on and off and as many rates as you like
for
each booking.

You wont need the date and time information in your TblBookings

Input the info using Booking information (witthout the dates and times)
on
the main form and the ons, offs and rates on a subform

HTH

Phil
<bo*****@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegr oups.com...
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
and a date/time end of booking. A staff member is then sent to the
client. This is stored in a bookings table.

BookingID (Pkey)
clientID
StaffID
dateBegin
timebegin
dateend
timeend

my main problem is with charge rates.

If for example a booking is taken on a friday from 12 noon till 10am
the next day. Charge rates may be from 10am till 5pm at one rate then
increase for the night time and then reduce again at 7am in the
morning.

My other problem is this information needs to be stored incase the
charge rates change and I want to look back over previous bookings but
obviously want to see the price i charged not the price with the
updated charge rates.

Now I know how to calculate the bookings on the fly using a function /
queries etc. My problem is I dont know how to contruct my tables with
out storing masses of data

Help

Thanks in advance

Boyley

Aug 25 '06 #4

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

Similar topics

20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
20
by: Allen Browne | last post by:
To help you avoid some of the more common and long-standing bugs in Access, the page: http://allenbrowne.com/tips.html contains a new section entitled, "Flaws in Access". The section currently...
17
by: Jelmer | last post by:
Hi, I am mildly familiar with ms access developement and I have been asked to port and document a ms access app. I expect the porting (97 to XP) to be fairly straightforward. However documenting...
2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
6
by: latosca68 | last post by:
I need to demostrate, in a forensic job, that I can change (insert, update, delete) records in a table of an access database without trace. How can I do this ? I plan to make the queries or export...
35
by: deko | last post by:
Do I get more scalability if I split my database? The way I calculate things now, I'll be lucky to get 100,000 records in my Access 2003 mdb. Here some math: Max mdb/mde size = 2000 x 1024 =...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
38
by: Oldie | last post by:
I have built an MS Access Application under MS Office XP (but I also own MS Office 2000). I have split the application in the pure database tables and all the queries, forms, reports and macro's. ...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1....
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.