PC Review


Reply
 
 
shirl
Guest
Posts: n/a
 
      30th Apr 2010

Hi

I have a database that was set up very quickly a few years ago, it is
for recording the booking out of equipment to staff at a college.

The database now has over 1500 records and I would like to change how it
works as there is lots of duplicate data and I want to make data entry
easier for the person who has to enter the data.

It consist of one table [Equipment] which has a autonumber primary key
ID containing a list of equipment. Another table [Dept] with an
autonumber primary key containing departments. A third table [Bookings]
with an autonumber primary key ID this contains the staff names, dates
of equipment booked out a field called resource which looks at the
equipment table, area which looks at the department table.

My problem is that as the staff and details of resources booked out are
all in one table, this data is duplicated as each time something is
booked out we have to enter the staff details again.

What I would like is a form which contained the staff details and a
subform which showed the equipment being booked out. I have tried to
make two new tables using a make table query from the [Bookings] table,
but my problem is that when I do that both new tables for the staff and
the bookings both have the same ID as they came from the same table.

How can I separate the staff and bookings yet still keep them linked so
that I can have a form something like the Northwind database, where you
see a record for a person and all of their bookings?

I hope this makes sense, as you can guess I am not an Access expert and
only use it occasionally.

Thanks
Shirl




--
shirl
 
Reply With Quote
 
 
 
 
Steve
Guest
Posts: n/a
 
      1st May 2010
Hi Shirl,

You need the followin tables:

TblDepartment
DepartmentID
Department

TblStaff
StaffID
FirstName
LastName
InActive (Yes/No)

TblDepartmentStaff
DepartmentStaffID
DepartmentID
StaffID

TblEquipment
EquipmentID
EquipmentName

TblEquipmentBooking
EquipmentBookingID
EquipmentID
StaffID
DateOut
DateReturned

You can use a form/subform to enter departments and staff in the department.
Base the main form on TblDepartment and base the subform on
TblDepartmentStaff. Set the Linkmaster and LinkChild properties to
DepartmentID. In the subform, use a combobox to enter StaffID. Set the row
source of the combobox to TblStaff.

You can use a form/subform to enter equipment and equipment bookings. Base
the main form on TblEquipment and base the subform on TblEquipmentBooking.
Set the Linkmaster and LinkChild properties to EquipmentID. In the subform,
use a combobox to enter StaffID. Set the row source of the combobox to
TblStaff.

Steve
(E-Mail Removed)


"shirl" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi
>
> I have a database that was set up very quickly a few years ago, it is
> for recording the booking out of equipment to staff at a college.
>
> The database now has over 1500 records and I would like to change how it
> works as there is lots of duplicate data and I want to make data entry
> easier for the person who has to enter the data.
>
> It consist of one table [Equipment] which has a autonumber primary key
> ID containing a list of equipment. Another table [Dept] with an
> autonumber primary key containing departments. A third table [Bookings]
> with an autonumber primary key ID this contains the staff names, dates
> of equipment booked out a field called resource which looks at the
> equipment table, area which looks at the department table.
>
> My problem is that as the staff and details of resources booked out are
> all in one table, this data is duplicated as each time something is
> booked out we have to enter the staff details again.
>
> What I would like is a form which contained the staff details and a
> subform which showed the equipment being booked out. I have tried to
> make two new tables using a make table query from the [Bookings] table,
> but my problem is that when I do that both new tables for the staff and
> the bookings both have the same ID as they came from the same table.
>
> How can I separate the staff and bookings yet still keep them linked so
> that I can have a form something like the Northwind database, where you
> see a record for a person and all of their bookings?
>
> I hope this makes sense, as you can guess I am not an Access expert and
> only use it occasionally.
>
> Thanks
> Shirl
>
>
>
>
> --
> shirl



 
Reply With Quote
 
Tom van Stiphout
Guest
Posts: n/a
 
      1st May 2010
On Fri, 30 Apr 2010 17:25:17 -0400, shirl
<(E-Mail Removed)> wrote:

You have the right instincts. Indeed the previous developer did nobody
any favors with this very bad design.
MakeTable queries may work, but I would rather first create the new
tables manually, with their correct fields, primary keys, and
relationships. This is the part that is most difficult for beginners,
but there is a lot of help out there if you want to learn. For example
here:
http://www.youtube.com/results?searc...y+crystal&aq=0
is a series of videos by a fellow MVP.

Once the database design is in place, create some Append and perhaps
Update queries to copy the data from the old design to the new.

-Tom.
Microsoft Access MVP


>
>Hi
>
>I have a database that was set up very quickly a few years ago, it is
>for recording the booking out of equipment to staff at a college.
>
>The database now has over 1500 records and I would like to change how it
>works as there is lots of duplicate data and I want to make data entry
>easier for the person who has to enter the data.
>
>It consist of one table [Equipment] which has a autonumber primary key
>ID containing a list of equipment. Another table [Dept] with an
>autonumber primary key containing departments. A third table [Bookings]
>with an autonumber primary key ID this contains the staff names, dates
>of equipment booked out a field called resource which looks at the
>equipment table, area which looks at the department table.
>
>My problem is that as the staff and details of resources booked out are
>all in one table, this data is duplicated as each time something is
>booked out we have to enter the staff details again.
>
>What I would like is a form which contained the staff details and a
>subform which showed the equipment being booked out. I have tried to
>make two new tables using a make table query from the [Bookings] table,
>but my problem is that when I do that both new tables for the staff and
>the bookings both have the same ID as they came from the same table.
>
>How can I separate the staff and bookings yet still keep them linked so
>that I can have a form something like the Northwind database, where you
>see a record for a person and all of their bookings?
>
>I hope this makes sense, as you can guess I am not an Access expert and
>only use it occasionally.
>
>Thanks
>Shirl

 
Reply With Quote
 
shirl
Guest
Posts: n/a
 
      16th May 2010

Thanks for you help, have finally got it sorted.
Shirl

'Steve[_77_ Wrote:
> ;3718254']Hi Shirl,
>
> You need the followin tables:
>
> TblDepartment
> DepartmentID
> Department
>
> TblStaff
> StaffID
> FirstName
> LastName
> InActive (Yes/No)
>
> TblDepartmentStaff
> DepartmentStaffID
> DepartmentID
> StaffID
>
> TblEquipment
> EquipmentID
> EquipmentName
>
> TblEquipmentBooking
> EquipmentBookingID
> EquipmentID
> StaffID
> DateOut
> DateReturned
>
> You can use a form/subform to enter departments and staff in th
> department.
> Base the main form on TblDepartment and base the subform on
> TblDepartmentStaff. Set the Linkmaster and LinkChild properties to
> DepartmentID. In the subform, use a combobox to enter StaffID. Set th
> row
> source of the combobox to TblStaff.
>
> You can use a form/subform to enter equipment and equipment bookings
> Base
> the main form on TblEquipment and base the subform o
> TblEquipmentBooking.
> Set the Linkmaster and LinkChild properties to EquipmentID. In th
> subform,
> use a combobox to enter StaffID. Set the row source of the combobox to
> TblStaff.
>
> Steve
> (E-Mail Removed)
>
>
> "shirl" (E-Mail Removed) wrote in message
> news:(E-Mail Removed)...-
>
> Hi
>
> I have a database that was set up very quickly a few years ago, it is
> for recording the booking out of equipment to staff at a college.
>
> The database now has over 1500 records and I would like to change ho
> it
> works as there is lots of duplicate data and I want to make data entry
> easier for the person who has to enter the data.
>
> It consist of one table [Equipment] which has a autonumber primary key
> ID containing a list of equipment. Another table [Dept] with an
> autonumber primary key containing departments. A third tabl
> [Bookings]
> with an autonumber primary key ID this contains the staff names, dates
> of equipment booked out a field called resource which looks at the
> equipment table, area which looks at the department table.
>
> My problem is that as the staff and details of resources booked ou
> are
> all in one table, this data is duplicated as each time something is
> booked out we have to enter the staff details again.
>
> What I would like is a form which contained the staff details and a
> subform which showed the equipment being booked out. I have tried to
> make two new tables using a make table query from the [Bookings
> table,
> but my problem is that when I do that both new tables for the staf
> and
> the bookings both have the same ID as they came from the same table.
>
> How can I separate the staff and bookings yet still keep them linke
> so
> that I can have a form something like the Northwind database, wher
> you
> see a record for a person and all of their bookings?
>
> I hope this makes sense, as you can guess I am not an Access exper
> and
> only use it occasionally.
>
> Thanks
> Shirl
>
>
>
>
> --
> shirl



--
shirl
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.