Results 1 to 7 of 7
  1. #1
    alyon is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    89

    Continuing Number Textbox


    In access 2007, I have a textbox on a form. I would like the textbox to automatically show a number from the previous form's textbox +1... so start at one, and go as high as necessary. I'm not really even sure how to explain it well, so I haven't been able to look it up much. Any help would be greatly appreciated, I can try to explain myself better if necessary.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    If you are not already using autonumber in your table, then you can apply this format to the field.

    Alan

  3. #3
    alyon is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    89
    How do I set my table up to make my field do that? And if I do, that will show the numbers automatically in my form?

  4. #4
    alyon is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    89
    I set up autonumber, but that doesn't help me? I need it to automatically insert the next number into the textbox on my form, autonumber doesn't do that. it comes up (new)

  5. #5
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Once you populate the form with other information, then the "new" will change to the next sequential number.

    Alan

  6. #6
    alyon is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    89
    I was already using autonumber for another field, once I had figured out what it was. However, I figured out how to do it, and incase anyone else is wondering, the way to do this is: =DMax("[textbox]","form")+1 in the default function of your textbox. :]

  7. #7
    alyon is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    89
    But, thank you for your help. :]

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

Similar Threads

  1. Replies: 4
    Last Post: 07-07-2011, 06:34 PM
  2. Limiting textbox to number issue
    By GraemeG in forum Programming
    Replies: 3
    Last Post: 03-29-2011, 07:25 AM
  3. Getting #Number ! on addition of 5 textbox
    By Grooz13 in forum Forms
    Replies: 0
    Last Post: 08-18-2010, 07:49 AM
  4. Replies: 2
    Last Post: 08-09-2010, 08:13 AM
  5. Report TextBox printing ID Number, not text
    By ZipDoc in forum Reports
    Replies: 8
    Last Post: 02-01-2010, 12:30 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