Results 1 to 3 of 3
  1. #1
    elstiv is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    2

    Increase number by 1

    I have been trying this for a whole day to no success. I have created a simple Select Query showing data from various tables. I now want to add a column in my Query called CUSTOMER_NO which simply shows a number (for example 500) for the first query result and then add 1 to each subsequent result in the query. For exmaple this is what I want in the result of my select query:



    Name Surname CUSTOMER_NO
    Joe Smith 500
    Harry Potter 501 etc

    I have an auto ID but i do not want to use that, all i want is to generate a number (such as 500) and increment it by one in the select query. I do not want this number to be stored anywhere just shown in the select query results.
    Please help. Thanks

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Check out "rogersaccesslibrary.com".

    There is a page "NumberedQuery.mdb (beginner)" at:

    http://www.rogersaccesslibrary.com/forum/topic309.html

    This sample illustrates two different ways to create a query with a sequenced number column.

    (select the Access 2000 version)



  3. #3
    elstiv is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    2
    many thanks i will give it a try and post back

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

Similar Threads

  1. Replies: 9
    Last Post: 09-13-2012, 05:18 PM
  2. Increase by 1
    By Mclaren in forum Programming
    Replies: 5
    Last Post: 08-23-2010, 10:53 PM
  3. Increase search speed
    By kjuelfs in forum Queries
    Replies: 3
    Last Post: 07-12-2010, 05:11 AM
  4. Making New Record Number Next Numerical Number
    By jhillbrown in forum Access
    Replies: 1
    Last Post: 03-10-2010, 11:06 AM
  5. Replies: 0
    Last Post: 03-23-2009, 01:21 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