Results 1 to 2 of 2
  1. #1
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    query calculated field. problem with dsum criteria.

    I am creating a basic stock control query.

    I have

    1 table which is stockitems.
    1 table which is orders
    1 table which is stockdelivery.



    I have created a query based on the stock items table and have created an expression to show the amount of stock in total that has been ordered. but I cannot seem to get it correct.

    I have tried two different code lines

    TotalPurchased: DSum("[NumberOfItems]","[StockDelivery]"," [ITEMDescription] = """ & [Description] & """")

    Does not display anything in the field when the query is viewed.

    TotalPurchased: DSum("[NumberOfItems]","[StockDelivery]"," [ITEMDescription] = " & [Description])

    Displayer error in the field(syntax error) missing operator.

    Both [ITEMdescription] and [description] are text fields and [numberofitems] is a number field(double).

    Can anyone see what I am doing wrong.

  2. #2
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    Solved

    not a prob with the criteria, just list box was bound to the wrong column

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

Similar Threads

  1. union query with a calculated field
    By grad2009 in forum Queries
    Replies: 9
    Last Post: 03-31-2010, 04:50 PM
  2. Replies: 4
    Last Post: 03-05-2010, 09:56 PM
  3. Replies: 3
    Last Post: 06-03-2009, 07:15 AM
  4. Calculated Query Field used in different Query
    By cakdhooper in forum Queries
    Replies: 0
    Last Post: 11-21-2008, 03:07 PM
  5. Setting criteria in a calculated date field
    By SteveReberger in forum Access
    Replies: 0
    Last Post: 10-29-2008, 06:58 AM

Tags for this Thread

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