Results 1 to 3 of 3
  1. #1
    Thermalmonster is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    18

    Recall max value from Table

    I have a form with a text box. I want the CTRL to display the Max number from a table.


    Im building an expression but cant get the syntax right

    =max(<<expression>><<expr>>[TUNNEL INFO 100]![CD16]


    Thanks in advance

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    You want to use the DMax function, something like

    =DMax("FieldName","TableName","Criteria")

    Post more details of what you want to do if you have trouble getting the syntax right.

    John

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The DMax() function can return the max value from table. If you want the maximum value in the form's dataset, use Max().
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Recall previous values on a form
    By Thermalmonster in forum Programming
    Replies: 12
    Last Post: 07-28-2014, 01:54 PM
  2. Replies: 4
    Last Post: 08-30-2012, 07:58 PM
  3. Replies: 8
    Last Post: 03-22-2012, 08:48 AM
  4. Replies: 2
    Last Post: 08-01-2011, 11:35 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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