Results 1 to 3 of 3
  1. #1
    Damien01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    5

    Adding numbers to a field in records in a form


    Hi
    My first post here.
    I have a form with many records, and I need to enter a number in a field "DAY ITEM". I need to add the number 1 in the first record, and then 2 in the second record etc. THere are about 6,000 records so i was hoping there
    may be some sort of macro or where I can add these numbers ( 1 through to 6000) into field rather then typing them in manually.

    Thank you for any assistance

    Damien

  2. #2
    Damien01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    5
    Hi
    sorry, I feel so silly responding to my own thread , but I worked this one out, and I am posting in case someone else might not be sure how to do it.
    I copied the table related to the form into an excel spreadsheet. THen I filled the column - "date item" (in excel) with the numbers in increasing order by one and starting with 1. This is easy to do in excel by highlighting the two first cells in the column, then left clicking the second cell's corner and dragging the mouse down to the required number of entries, in this case, 6,000. (THE FIRST two cells need to have the numbers entered manually, which is very easy with only two numbers - 1, and 2. THen, copy the column that the numbers were created, and go back to the access table, place the focus back onto the top cell (DATE ITEM) in the datasheet view of the field I need to put the numbers into, and press paste, and so wonderful - they were all there !! A simple solution.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Damien01 View Post
    Hi
    ...sorry, I feel so silly responding to my own thread , but I worked this one out, and I am posting in case someone else might not be sure how to do it...
    Not silly at all; it is, in fact, proper forum etiquette! Anytime a poster starts a thread, then either solves it themselves or finds the answer elsewhere, etiquette dictates that they post the solution, so that others searching the same or similar questions can benefit.

    Welcome to the forum!

    Linq ;0)>

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

Similar Threads

  1. Replies: 22
    Last Post: 05-31-2013, 09:13 AM
  2. Replies: 6
    Last Post: 07-03-2012, 12:27 PM
  3. Adding numbers
    By imtiaz703 in forum Access
    Replies: 1
    Last Post: 02-14-2012, 09:50 AM
  4. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  5. Adding numbers to dates
    By MFS in forum Programming
    Replies: 5
    Last Post: 11-24-2010, 12:06 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