Results 1 to 4 of 4
  1. #1
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    DataBase Design.

    Dear, I hope there will be some one to help out for this datababse design.



    I have the following table and description.

    tblKilnInfo
    TrnNo PK (Autonumber)
    TrnDate Date/Time
    ShiftID Combobox
    KilnNo Number
    KCarID Number
    PushingTime Number
    Intime Time
    OuTime Time
    Note Text



    There is every day in each shift Kiln Cars (KCarID) which goes in and some of goes out.

    so after this data entry, i will be required to know that if the KCarID 89 enter at 08:00AM on dated 09/21/2011 and it was out at 17:00 09/24/2011. so will be required to know for ho many days/hours this car been inside the kiln and so on.

    please advise?

    tble fields and settings?
    Query to retrieve the data?


    thanks.

    zahid

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    DateDiff ( interval, date1, date2,)

    http://www.techonthenet.com/access/f...e/datediff.php

  3. #3
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Thanks Sir, it is a useful link. But i am looking to manage the TrnDate and Intime and Outime together.

    Like we made Tran dated on 09/20/2011 and car # 01 Intime was 10:00 Am so dated on 09/22/2011 there was an Tran in which this car # 01 OutTime was 21:00 PM So what will be the query to retrieve the data that will shows that this car # 01 hopw many days or hours passed inside Kiln.

    please advise.

    thanks.

    zee

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    The datediff function is how it's queried
    SELECT CARID, DateDiff ( interval, date1, date2,)
    FROM wherever

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

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Database design
    By BeetleBailey in forum Database Design
    Replies: 6
    Last Post: 09-20-2011, 01:35 PM
  3. Database Design.
    By cap.zadi in forum Database Design
    Replies: 4
    Last Post: 09-14-2011, 07:02 AM
  4. Help with Database Design
    By neo651 in forum Access
    Replies: 3
    Last Post: 09-11-2011, 06:33 PM
  5. Database Design
    By mzrihe1x in forum Database Design
    Replies: 1
    Last Post: 06-17-2009, 09:09 PM

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