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

    Query OK Report Error

    Hi
    When I run 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;

    it runs fine and shows table result
    but when I try to build a report by using this query I get message:

    "The wizard is unable to open your query in Datasheet view, possibly because another user has a source table open in exclusive mode. Your query will be opened in design view"



    and if I click Ok and try to preview report I get
    Invalid use of Null

    How to get rid of this problem?
    Regards

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I tested your query structure with my data and report runs fine. Cannot replicate your issue. Do you want to provide project for analysis?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. #Name? Error in Report
    By kristyspdx in forum Reports
    Replies: 4
    Last Post: 12-01-2011, 11:11 AM
  2. OVERFLOW error in both Query and Report
    By LanieB in forum Access
    Replies: 9
    Last Post: 11-11-2011, 08:54 PM
  3. Report error
    By indira in forum Reports
    Replies: 2
    Last Post: 03-12-2011, 03:13 PM
  4. Error in Footer Sum on Report
    By eww in forum Reports
    Replies: 2
    Last Post: 08-26-2010, 01:54 PM
  5. Report Printing Error
    By gjohnson71 in forum Reports
    Replies: 4
    Last Post: 03-07-2009, 12:36 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