Results 1 to 8 of 8
  1. #1
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21

    Table help



    Hello,

    I really need help and im so stressed out i cant understand.

    Ok so im doing a project and i made a requirement spec of which has this:

    must store appointment ID, customer ID, forename, surname, contact number, dentist ID, forename, surname, room, appointment date and time...


    what this means is when a new appointment is made which asks for the details above then these details will be stored... in the appointments table..

    BUT my issue is my appointments table does not have forename, surname ( for both the customer and dentist) or the contact number....

    So i dont know how i will justify that those listed will be stored from the new appontment because all that is stored is appointment ID, customer ID, dentist ID, room, appointment date and time...

    because if i cant then my issue is why did we ask for those details in the new appointment (i needed them to identify the customer if the ID was forgotten)

    IM SO STUCK


    please if anyone understand could you help me out

    THank you
    PS, i have posted this on another forum but i am desperate for help so i have posted this here


  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    You need separate tables namely
    tblCustomers(CustomerID PK, forename, lastname and other fields)
    tblDentist(DentistID PK, forename, lastname and other fields)
    tblAppointments (AppointmentID,AppDate - appointment date,CustomerIDFK -related to CustomerID,DentistIDFK -related to DentistID)
    See this site form examples of database relationsips - http://www.databaseanswers.org/data_models/

  3. #3
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    I do have seperate tables.. my issue is that if ive said new appointments are made an stored on appointment table then how is this the case when only the customer ID is saved and not the contact number ( in the apt table)

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    No need to save customer contact number in apts table as it is already there in tblCustomers. This is how relational database works. You can use a query to pull all the related customer data based on the CustomerIDFK foreign key stored in apts table.

  5. #5
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    so does this mean my requirement of new appointments must be stored in appointments table is invalid? because it only stores part of what was collected?

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Thanks for advising readers!
    PS, i have posted this on another forum but i am desperate for help so i have posted this here.
    This has been cross posted at http://www.access-programmers.co.uk/...d.php?t=276158

  7. #7
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    No, new appointments must be stored in appointment table only. One field pointing towards the customer is enough for an appointment as other details about that customer are already there in your customers table. In case of new customer, you have to always add him to the customer's table before you proceed for booking an appointment. Can you post a screenshot of your table relationship ?

  8. #8
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    Oh i understand now!

    Thank you for your help

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 08-30-2012, 07:58 PM
  2. Replies: 8
    Last Post: 03-22-2012, 08:48 AM
  3. Replies: 2
    Last Post: 08-01-2011, 11:35 PM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums