Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Combox box in SQL code

Discussion in 'Information Technology' started by red6000, Jul 28, 2006.

Tags:
  1. red6000

    red6000
    Expand Collapse
    Guest

    Hi, I have a QUERY where my final line of code is:

    WHERE ((([Individual Full Summary].CSRName)=[Enter name of CSR - must be
    spelt correctly]))

    Is it possible to amend this code so that the 'Enter Parameter' box that
    appears is a combobox with the data held from 'CSRNames.CSRNames' table?

    Many thanks.

    Steve.
     
  2. Loading...


  3. Ken Snell \(MVP\)

    Ken Snell \(MVP\)
    Expand Collapse
    Guest

    No. You would have to open a form that has a combo box on it and let that
    combo box contain the allowed values, then have the query read the parameter
    value froma that form (the form must be open when the query runs). The
    query's clause then would be

    WHERE ((([Individual Full
    Summary].CSRName)=[Forms]![FormName]![ComboBoxName]


    --

    Ken Snell
    <MS ACCESS MVP>

    "red6000" <red1000002001@yahoo.com> wrote in message
    news:44b94333$0$22119$ed2619ec@ptn-nntp-reader01.plus.net...
    > Hi, I have a QUERY where my final line of code is:
    >
    > WHERE ((([Individual Full Summary].CSRName)=[Enter name of CSR - must be
    > spelt correctly]))
    >
    > Is it possible to amend this code so that the 'Enter Parameter' box that
    > appears is a combobox with the data held from 'CSRNames.CSRNames' table?
    >
    > Many thanks.
    >
    > Steve.
    >
     

Share This Page