Results 1 to 2 of 2
  1. #1
    msp4422 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    7

    CLearing Few boxes after duplicate

    Hi



    I have kept a duplicate button to duplicate the current record but I would like to know how we can make
    1) few fields empty and
    2) Increment a particular NID field to the next highest number present in the database. ( This particular ID field contains duplicate values too, so Autonumber is eliminated from the options). I am trying to increment that ID to (Current Highest Value in DB for NID+1)

    Many Thanks.

  2. #2
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    you can use dmax()

    =dmax("fieldname","tablename") + 1

    if by empty you mean null or ""

    me.fieldname = ""

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

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2013, 04:03 PM
  2. Clearing a Form
    By dabatman in forum Forms
    Replies: 4
    Last Post: 01-20-2012, 11:51 AM
  3. Clearing certain boxes on form for next record using VB
    By justinwright in forum Programming
    Replies: 3
    Last Post: 07-21-2010, 12:16 PM
  4. clearing a form
    By macsterling in forum Forms
    Replies: 0
    Last Post: 07-31-2008, 10:38 AM
  5. Clearing the clipboard with VBA?
    By Simon Sweet in forum Programming
    Replies: 1
    Last Post: 04-17-2008, 03:16 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