Results 1 to 3 of 3

Thread: Search un-used number

  1. #1

    Thread Starter
    Member
    Join Date
    May 2013
    Location
    Indonesia
    Posts
    33

    Search un-used number

    Someone please help me to search unused number in mdb ordered number list
    Eg:
    From 1-10 I used these:
    1
    2
    3
    5
    7
    8
    And unused these:
    4
    6
    9
    10
    How can I search it?
    Tx 4 ur help

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Search un-used number

    You could use a FOR-NEXT loop
    and inside the loop lookup for the record for that number
    Following your example:
    Code:
    FOR X = 1 TO 10
        Search your recordset with X
        If the search fails then is UNUSED else is USED
    NEXT X
    you didn't say if you're using ADO or DAO
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    Member
    Join Date
    May 2013
    Location
    Indonesia
    Posts
    33

    Re: Search un-used number

    I am using ADO, thanks 4 ur answer, I will try it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width