Results 1 to 6 of 6
  1. #1
    Rainbows5. is offline Novice
    Windows 10 Office 365
    Join Date
    May 2025
    Posts
    5

    First number only if the number is repeatable

    HI
    i have a form which has a drop down box in it


    this drop down box shows me all the contract numbers i have used in a table called Issues. there are times when that contract number could be repeated how can i get it that it only shows the first contract number not the repeatable ones .
    thanks steve

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927
    please clarify - how would a contract number be repeated and how do you determine which is the first one

    Also provide the sql to the dropdown rowsource.

    it may be all you need is something like

    SELECT DISTINCT ContractNum FROM myTable

  3. #3
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Use a select distinct instead of a select in the Rowsource statement

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You don't have a table of contracts where contract number would be unique?
    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.

  5. #5
    Rainbows5. is offline Novice
    Windows 10 Office 365
    Join Date
    May 2025
    Posts
    5

    First number only if the number is repeatable

    [QUOTE=Rainbows5.;534853]HI
    i have a form which has a drop down box in it
    this drop down box shows me all the contract numbers i have used in a table called Issues. there are times when that contract number could be repeated how can i get it that it only shows the first contract number not the repeatable ones .
    thanks steve[/QUOT

    Hi the database we use is mainly for action requests . some of these action could be on a certain project /contract number . if 3 action requests we entered on the same same project/contract number in my dropdown box i will see 3 numbers the same but it would be better if i only seen one of them because all 3 will be retrived


    thanks steve

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927
    So you have your answer in posts 2 and 3 or the better option in post 4 assuming your data is normalised

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

Similar Threads

  1. Replies: 3
    Last Post: 09-15-2016, 08:16 AM
  2. Replies: 7
    Last Post: 03-22-2016, 02:50 PM
  3. Replies: 2
    Last Post: 05-07-2015, 02:55 PM
  4. Replies: 7
    Last Post: 03-19-2013, 02:04 PM
  5. Replies: 2
    Last Post: 07-07-2011, 12:21 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