Welcome to SPN

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

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

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.
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page