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

    DMIN returning max value, and DMAX returning min value

    I'm stumped on this one.


    I have a table that has a sharepoint table as its source. When I attempt to use the DMIN/DMAX function in VBA, they both return the opposing value. It's only for this table though, all other local tables it works fine for.
    I know I could just take it as given that DMIN's giving max and vice versa and use that in my code, the worry is that it'll eventually just sort itself out and I'll have to change my code to deal with it.

    Any suggestions as to what the problem could be?

    Cheers!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    what is your actual code for dmin, dmax?

    what is it returning? a number? date? text?

    provide some examples of what you expect and what you get

  3. #3
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    sanity check with an aggregate query to compare with....

  4. #4
    AB1984 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    4
    If anyone else had this problem:
    I seemed to fix the problem by ordering by the number I was dminning and dmaxing ascending.

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

Similar Threads

  1. Replies: 12
    Last Post: 12-25-2015, 12:47 AM
  2. DMax returning Null
    By Markb384 in forum Access
    Replies: 1
    Last Post: 05-01-2014, 09:11 AM
  3. Function - Returning a Value
    By dreamnauta in forum Programming
    Replies: 3
    Last Post: 01-05-2012, 03:37 PM
  4. Returning PK after append?
    By MikeMairangi in forum Database Design
    Replies: 5
    Last Post: 08-18-2011, 04:28 PM
  5. DMax returning wrong value
    By nedbenj in forum Access
    Replies: 7
    Last Post: 10-24-2007, 10:30 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