How can I pass a parameter to a Datareport in VB6?. I made a command with a parameter, but I don“t know the way to pass a value when I show the datareport.
Thanks
Printable View
How can I pass a parameter to a Datareport in VB6?. I made a command with a parameter, but I don“t know the way to pass a value when I show the datareport.
Thanks
you don't pass the parameter "to the Data report" but rather to the Command.
Base your datareport on the command by setting the DataSource and DataMember properties of the datareport accordingly.
DataEnvironment1.yourcommand yourparameter
datareport1.show