Results 1 to 2 of 2
  1. #1
    har273 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    2

    How To Caluculte the maximum values from the table and assingn to the textbox

    Hi there

    Thanks For reading this thread.
    I am a beginer of access programming.

    I have a problem in doing a task with my form.

    Actually I have a button to add a new record which opens a new form there i enter the values to the record. But when I press the Addnew record button I want to calculate the maximum of the Identity field +1 and open the new form with that new number which i have calculated. How can i do this

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    It sounds like you need to use the DMax() domain aggregate function.

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

Similar Threads

  1. Replies: 0
    Last Post: 07-26-2011, 02:03 PM
  2. make textbox lookup values case insensitive
    By sephiroth2906 in forum Forms
    Replies: 2
    Last Post: 04-22-2011, 10:36 AM
  3. Not sure why textbox not working for some values
    By jtkjames in forum Programming
    Replies: 1
    Last Post: 07-21-2010, 04:26 AM
  4. Replies: 3
    Last Post: 04-04-2010, 05:26 PM
  5. Replies: 1
    Last Post: 03-25-2009, 02:20 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