Results 1 to 4 of 4
  1. #1
    Patience is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    52

    Suggest number based on already used numbers


    Hi guys,

    Here is the set-up:

    I have a field A in which the user enters a number. This number will be identical for many related posts created by the user. It is an identification number that shows which posts are related.

    When the user needs a new number for a group of related posts, I would like Access to suggest an available number; that is a number which has not already been used.

    Do you have an idea of how this can be easily done?

    thank you very much!

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Check Autonumeber. Make the Field Type Autonumber that will generate this Number.

    Advantages:
    No VBA Codes Required
    Disadvantage:
    Not Good if you want to maintain sequence.

    if you are not bothered about the sequence of you numbers thne go a head otherwise you have to opt for other methods just let me know.

  3. #3
    Patience is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    52
    Thanks maximus.

    However, autonumber generates a new number for each post. I would like to be able to use the same number for several posts. Is that possible?

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    try a One-Many Relationships. create two tables one which has the field which will have the unique number. Next table will have a foreign key which is linked to the main table. here you will the data.

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

Similar Threads

  1. Making New Record Number Next Numerical Number
    By jhillbrown in forum Access
    Replies: 1
    Last Post: 03-10-2010, 11:06 AM
  2. Auto Suggest
    By Makem in forum Access
    Replies: 3
    Last Post: 11-16-2009, 08:53 AM
  3. Replies: 5
    Last Post: 10-08-2009, 05:15 AM
  4. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 PM
  5. Replies: 5
    Last Post: 02-08-2006, 08:42 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