Pass parameters from a form to a pass through query Version

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tino11
    New Member
    • Nov 2006
    • 3

    Pass parameters from a form to a pass through query Version

    Hi,

    I have a form that allows users to enter date parameters (Start date and end date) I am looking to pass the values keyed in the two text boxes to a pass through query.

    Currently I have to edit the query and manually change the parameters:

    Exec usp_KPI_New_Inc entive_WithOT '20080501','200 80531'

    Can I link this to the form?

    Thanks in advance.

    Dave
  • puppydogbuddy
    Recognized Expert Top Contributor
    • May 2007
    • 1923

    #2
    Place your query in design view, then put the following reference to your form and textboxes in the criteria row of your date column :

    Between Forms!YourForm![txtStartDate] And Forms!YourForm![txtEndDate]

    Replace object names I used for illustrative purposes, with their actual names.

    Comment

    Working...