Are you going via a DataEnvironment or setting your Datareport DataSource in code?
If you're doing it in code, then use the parameters to change your DataSource, then re-assign.
dr1.DataSource = myNewRst
If you're using a DataEnvironment, then select the command that you want to use, click the SQL statement checkbox on the properties|General tab and type your complete SQL statement in there, e.g.:
SELECT Add1, Add2, Add3, ClientName, sold FROM tblClients WHERE (ClientName LIKE input1)
Now when you click on the Parameters tab, you'll find Input1 on the list. You can set it's name (as seen outside) and it's properties as required.
Then in code call it as e.g.:
strParam1 = "%" & Text3.Text & "%"
With de1
If .Connection2.State <> 0 Then .Connection2.Close
DoEvents
.Connection2.Open
.Command1 (strParam1)
End With
dr1.Show
In the example text3 contains the parameter, de1 is the name of the DataEnvironment, dr1 is the name of the DataReport and I'm using Command1 in Connection2 of the DatEnvironment
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'