Results 1 to 2 of 2
  1. #1
    endri81 is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    26

    Query Problems...

    Hi


    I make a modification in my existing query:

    SELECT datepart("q",[Data e fillimit te tremujorit]) & year([Data e fillimit te tremujorit]) AS PeriodQuarter, clng(IIf(left(PeriodQuarter,1) In (2,3,4),year([Data e fillimit te tremujorit]),year([Data e fillimit te tremujorit])-1)) AS FiscalYear, *
    FROM Konsumi_Disaperiudha1_Gimi;

    using NZ function.

    Now it seems

    SELECT DatePart("q",[Data e fillimit te tremujorit]) & Year([Data e fillimit te tremujorit]) AS PeriodQuarter, CLng(IIf(Left(PeriodQuarter,1) In (2,3,4),Year(NZ([Data e fillimit te tremujorit], 2) - 1))AS FiscalYear, *
    FROM Konsumi_Disaperiudha1_Gimi;


    Anyway my query is reporting Syntax Error.
    Please help repair
    Regards

  2. #2
    TIANRUOYOUQING is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2012
    Posts
    1
    Thanks for sharing.

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

Similar Threads

  1. Replies: 12
    Last Post: 05-22-2011, 03:49 PM
  2. Query Problems
    By brc in forum Reports
    Replies: 6
    Last Post: 03-24-2011, 11:53 AM
  3. Problems with IIF in query
    By ducecoop in forum Access
    Replies: 1
    Last Post: 11-15-2010, 10:29 AM
  4. SQL Query Problems
    By slaterino in forum Queries
    Replies: 2
    Last Post: 08-26-2010, 09:06 AM
  5. Query problems
    By geoffishere in forum Forms
    Replies: 1
    Last Post: 02-09-2010, 12:43 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