Results 1 to 2 of 2
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409

    dsum two criteria in vba


    I'm struggling with this query in vba :

    Code:
    "UPDATE Finanze SET Finanze.Entrate = DSum(""[entrate]"",""[movimentitotali]""), Finanze.Uscite = DSum(""[uscite]"",""[movimentitotali]"",""[moneymap] NOT LIKE ""*prelievo*"");")
    i tried a lot of combination but nothing.
    moreover, i want to add another criteria: [moneymap] <> "ricarica carta"

    what is wrong?

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    replace the double "" around your brackets [ with single " and change
    ""*prelievo*"" to '*prelievo*' for a start. If that doesn't help, state what the problem is and what the expected output is.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Help me ! using Dsum with criteria day
    By dahota in forum Forms
    Replies: 4
    Last Post: 06-25-2015, 11:05 AM
  2. Dsum criteria
    By Manuel Ferreira in forum Access
    Replies: 4
    Last Post: 09-12-2014, 09:54 AM
  3. dsum with criteria Not like 38,39,40,41
    By sdel_nevo in forum Programming
    Replies: 3
    Last Post: 06-13-2013, 03:23 PM
  4. Dsum criteria
    By bdaniel in forum Queries
    Replies: 4
    Last Post: 11-27-2011, 03:41 PM
  5. Dsum criteria problem
    By leonhuynh2006 in forum Queries
    Replies: 3
    Last Post: 10-04-2011, 03:18 AM

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