Results 1 to 2 of 2
  1. #1
    Subhajit is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    1

    How can I get a SQL that returns a single value using Max into a variable in Macro

    How can I get a SQL that returns a single value (using Max for example) into a variable in Macro. I would like to use that value further down the line.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I don't use macros, but I would think you could set a TempVar to a DMax() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Macro Single Step Error
    By cfspartan in forum Macros
    Replies: 6
    Last Post: 04-25-2015, 12:05 AM
  2. Replies: 2
    Last Post: 06-25-2014, 11:00 AM
  3. Single Macro Error 3021
    By qzx999 in forum Macros
    Replies: 17
    Last Post: 07-05-2013, 06:46 PM
  4. Replies: 0
    Last Post: 08-10-2011, 11:59 AM
  5. Refering to variable form names inside a variable
    By redpetfran in forum Programming
    Replies: 2
    Last Post: 05-21-2010, 01:39 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