At that time, I went to solve a problem, I found a lot of posts, and be saved.
Private submmand2_click () unload DataReport1Unload DataEnvironment1dim strmsg as string
DIM STRDATA AS STRING
strdata = txtnumber
STRMSG = INPUTBOX ("Please enter the single number you want to print", "SLR print", strdata)
DataENVIRONMENT1.COMMANDS ("Command1"). Parameters ("Strnumber") = strmsg
DataReport1.show
End Sub
How is the VB6.0 WIN98 DATAREPORT control? I want to print someone's information. DataReport1.datasource = DataENVIROMEN1 DATAREPORT1.DATAMEMBER = Command1 where the SQL statement in Command1 is "SELECT * from myTable where name =?" Form1 set a Text1 control, then what should I do? (yY) Change the SQL statement in Command1 to Parameters P Text; select * from myTable where name = p and then use the following statement in the program: DataEnvironment1.commands ("Command1"). Parameters ("p") = text1.text DataReport1.show farmer's views: DataENVIRONMENT1.CONNECTION.EXECUTE "SELECT * from myTable where name =" & text1.txt