Results 1 to 3 of 3
  1. #1
    blue66 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    3

    problem to show query field in a textbox report

    Hello,

    I've a query [qry_sales], showing the Turn Over [Sum of Expr4] value for different periods [Expr3] and per different [product_category].

    I've then created a report with the purpose to show month by month the Turn Over for each Product Category.

    I was trying to use this query applying it in the textbox control source :

    =(SELECT [Sum Of Expr4] FROM [qry_sales] WHERE [Expr3]="2009_01" AND [product_category]="Category1")



    but unsuccesfully. I've in the text box "#Name?"

    Then I tried with DLookup :

    =Dlookup("Sum Of Expr4" ,"[qry_sales]","[Expr3]='2010_01' And [product_category]='Category1'")

    but in this case I've syntax error...


    Thanks a lot for the help

  2. #2
    blue66 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    3
    I solved the problem by DLookup replacement of the "," with ";" .

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That's great! Go ahead and use the Solved thread tool.

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

Similar Threads

  1. Replies: 3
    Last Post: 06-03-2009, 07:15 AM
  2. Replies: 1
    Last Post: 03-25-2009, 02:20 PM
  3. Problem with Report Based on a Query
    By gmalaret in forum Reports
    Replies: 1
    Last Post: 11-25-2008, 08:38 AM
  4. Keeping text in a report textbox
    By Hawkx1 in forum Reports
    Replies: 2
    Last Post: 11-13-2008, 04:11 PM
  5. Replies: 1
    Last Post: 03-15-2007, 03:38 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