Results 1 to 3 of 3

Thread: SQL - select UNIQUE

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry

    Hi,

    I have an access db with a table hotels and want to fill a combo box with all the UNIQUE states in that table.

    The table has many hotels in the same state!!

    I tried ..

    ssql = "select unique (states) as states from hotels"

    but I get the error "undefined function 'unique' in expresion"

    Can someone please tell me how this is done!!

    Thank you.

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Try "distinct" in place of "unique".

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Talking

    Thanks you,

    "distinct" works!!!

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