Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: MTBF Analysis in Access query

  1. #21
    Board Regular
    Join Date
    Aug 2009
    Posts
    136
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: MTBF Analysis in Access query

    Getting a syntax error on FROM clause.

  2. #22
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,347
    Post Thanks / Like
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Default Re: MTBF Analysis in Access query

    Remove the second word "from". Then try again. If it doesn't work post back but do try to fix the syntax errors yourself so you don't have to wait for me.

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

  3. #23
    Board Regular
    Join Date
    Aug 2009
    Posts
    136
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: MTBF Analysis in Access query

    With a little modification this is working. I am having issues when there are more than two lines for each barcode and I think that I have some data that is incorrect. Here is the sql I am using now.
    I think I will need to do some scrubbing before determining the MTBF. I really appreciate the help with this.

    SELECT DISTINCT t1.BarCode, DateDiff("d",[t1].[Date_Warranty],[t2].[Date_Ent]) AS DateDifference
    FROM tbl_MTBF_Multiple_Entries AS t1 INNER JOIN tbl_MTBF_Multiple_Entries AS t2 ON t1.BarCode = t2.BarCode
    WHERE (((t1.RA_Num)<>[t2].[RA_Num]) AND ((t2.Date_Ent)>=[t1].[Date_Warranty]));

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •