Results 1 to 6 of 6

Thread: combo box query

  1. #1

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    combo box query

    There is a combo box in a form and there is a table say tableone.mdb. the table has a field say 'name'.

    the combo box should show all the names in that field. I don't want to use the data control

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: combo box query

    Thats nice.

    So what have you done so far?
    Searched the forums (button at top)?
    Checked online for tutorials??

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: combo box query

    i am sorry i didn't quite catch that...

    i have checked msdn. couldn't find a solution

    is it possible to do what i have asked for????

  4. #4
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Re: combo box query

    Put this in the data source for the combo box:

    Code:
    SELECT DISTINCTROW Table1.Name 
    FROM Table1
    GROUP BY Table1.Name;
    if you fail to plan, you plan to fail

  5. #5

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: combo box query

    Thanks I will try that
    I would like to point out that I am using Vb as a Frond End and Access as a back End.

  6. #6
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Re: combo box query

    Quote Originally Posted by koolsid
    i tried but is it not working....

    is it a vb code?
    this is to be put in the data source of your combo box. not in a vb module.

    if it is not working..is there an error message? can you clarify how it is not working.
    if you fail to plan, you plan to fail

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