Results 1 to 3 of 3
  1. #1
    danny2000 is offline Novice
    Windows XP Access 2002
    Join Date
    Nov 2010
    Posts
    14

    Wink No Running Sum (Access 2002)

    Hi
    I have form with a textbox of which I wish to increment records.
    If I use 'Autonumber' it will increment the record but shows "Autonumber" in the new records before I add any data and I don't want that.



    I understand access 2003 has a 'Running Sum' Property but I have access 2002 and it doesn't seem to have this.

    Is there any way to increment my records (showing in a text or combobox) which doesn't require miles of code? I want the numbers to re-adjust if I delete a record so that all serial numbers are unique.

    Is there a property which will allow me to do this?

    Thanks
    danny2000

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Running sum not a property for control in form, there is for report, but not sure if 2002 has it. Look for RunningSum property in textbox on report. If you find it, set it to yes and ControlSource to =1.

    Anything else requires code as far as I know, look at http://www.lebans.com/rownumber.htm

    Why do you need this in form?
    Last edited by June7; 07-17-2011 at 12:36 AM.
    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.

  3. #3
    danny2000 is offline Novice
    Windows XP Access 2002
    Join Date
    Nov 2010
    Posts
    14
    Quote Originally Posted by June7 View Post
    There is not a property for control in form, there might be for report, not sure if 2002 has it. Look for RunningSum property in textbox on report. If you find it, set it to yes and ControlSource to =1.

    Anything else requires code as far as I know, look at http://www.lebans.com/rownumber.htm

    Why do you need this in form?
    I just wanted this for a reference in a form. I'm basically entering an acronym and a description and want to number them.

    I think I've found a solution though. Just in case anyone else needs this I've used the 'CurrentRecord' property. It's exactly what I was looking for. I use this in a form event 'On Current' so when I select a new record the serial is automatically updated.

    Thanks for the response.

    Code:
    me.text1.value = form.CurrentRecord

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

Similar Threads

  1. access 2002 upgrade
    By JohnG in forum Access
    Replies: 2
    Last Post: 02-04-2011, 10:33 AM
  2. DAO Recordset Connection for Access 2002
    By creativefusion in forum Programming
    Replies: 5
    Last Post: 08-17-2010, 06:45 PM
  3. Old Access 2002 Application
    By billpl in forum Access
    Replies: 4
    Last Post: 02-19-2010, 07:51 AM
  4. Access 2002 ADP application in VSS
    By Accessdev in forum Access
    Replies: 0
    Last Post: 12-16-2009, 12:52 PM
  5. where is access 2002?
    By anon125 in forum Access
    Replies: 1
    Last Post: 08-16-2009, 10:42 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