Drop-down list in parameter query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • limperger
    New Member
    • Mar 2008
    • 66

    Drop-down list in parameter query

    Hello everyone!

    This is by no means urgent nor important, but just in case anyone has encountered this problem...
    Is it possible, in a parameter query (with its default Msgbox prompting to enter the parameter data), to change the "field" of the default Msgbox (in which you type the parameter data) into a drop-down list of options?

    Thank you very much in advance

    Best regards
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Sorry, this won't be possible.

    My approach would be to create a form with a combo box and pass the selected value to the query.

    Nic;o)

    Comment

    • limperger
      New Member
      • Mar 2008
      • 66

      #3
      Nico:

      Thank you very much for your help. I suspected this would not be possible...

      Best regards

      Comment

      • nico5038
        Recognized Expert Specialist
        • Nov 2006
        • 3080

        #4
        Originally posted by limperger
        Nico:

        Thank you very much for your help. I suspected this would not be possible...

        Best regards
        It's "by design", so only creating your own form can "solve" this.
        In my own databases I often use a "SELECT Distinct fieldname FROM tblX" to fill a combo box with the existing values and allow the users to chose one for reporting.

        Nic;o)

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          I think this tutorial addresses Nico's suggestion.



          Linq ;0)>

          Comment

          • limperger
            New Member
            • Mar 2008
            • 66

            #6
            Nico, linq:

            Thank you very much for your help.

            Best regards!

            Comment

            • nico5038
              Recognized Expert Specialist
              • Nov 2006
              • 3080

              #7
              No thanks needed, glad to help you and success with your application!

              Good link linq :-)

              Nic;o)

              Comment

              Working...