Results 1 to 4 of 4
  1. #1
    Mubashir is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2017
    Posts
    2

    Dsum error in query

    I have made a query in access 2013. It works fine but sometimes it causes appcrash. When I open the database first time and open that query it causes an appcrash but if I open the database and open that same query in design mode and just save it once(without any changes) then it works fine until I close it an re-open it. There is DSUM function which causes this problem. If I remove that dsum then it works fine everytime. Please tell me a solution

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Can we see the sql code for the query please?

  3. #3
    Mubashir is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2017
    Posts
    2
    SELECT DISTINCT tblrecord.item_ID, tblrecord.Item_Type, DSum("[Quantity]","tblrecord","[Item_ID] =" & [Item_ID]) AS Consumed
    FROM tblrecord;

  4. #4
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Seems ok. Do you have some data you could zip and put on here?

    It might help us to see a replicate of the error


    Sent from my iPhone using Tapatalk

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

Similar Threads

  1. Dsum Error when printing report
    By David Randle in forum Reports
    Replies: 1
    Last Post: 10-10-2016, 02:03 AM
  2. Should be simple DSUM - I get #error
    By crimedog in forum Access
    Replies: 3
    Last Post: 10-28-2015, 08:58 AM
  3. Dsum, Syntax error
    By mike02 in forum Queries
    Replies: 5
    Last Post: 05-24-2013, 09:52 AM
  4. DSum Error
    By alsoto in forum Queries
    Replies: 4
    Last Post: 11-21-2011, 10:47 AM
  5. DSUM() Error
    By msr71 in forum Access
    Replies: 14
    Last Post: 09-25-2011, 06:39 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