
Originally Posted by
nunobone
i need help with this..
i need the code kanang mo load sa report(VB rpt) using parameters.. like sa sql statement.. selecting from ListView... unsaon man?? i cant do it right.. ok siya sa first click peru if mo.choose ko og lain, mao ra gihapon ang mugawas, dili mausab ang value sa variable.
Problem na sa data report, you can solve that by closing the recordset if it was previously opened, or dili nimo e bind and datareport sa dataenvironment at design time, run time lng.
Ex, u have a datareport binded to a DataEnvironment1 with command text named "Command1" (early binding).
Code:
if DataEnvironment1.rsCommand1.State =1 then
DataEnvironment1.rsCommand1.Close
end if
' enter query to filter records
DataEnvironment1.Commands("Command1").CommandText = "Select * from table1 where field1='test'"
DataReport1.Show