 |
vb6.0
win98
datareport控件怎么用?
我想打印某个人的信息。
datareport1.datasource=Dataenviromen1
datareport1.datamember=command1
其中command1中的SQL语句为“select * from mytable where name=?"
form1中设置了一个TEXT1控件,然后怎么办?(yy)
|
| |
|
 |
将command1中的SQL语句改为
PARAMETERS p TEXT;
SELECT * FROM mytable WHERE name=p
然后在程序中使用如下语句:
DataEnvironment1.Commands("Command1").Parameters("p") = Text1.Text
DataReport1.Show
农夫的意见:
DataEnvironment1.connection.execute "select * from mytable where name=" & text1.txt
相关问题:
QA001874 "DataReport的内容不随数据库的内容变化"
此问题由李海回答。
附加关键字:编程, 源程序, programming, source code, Visual Basic, VB, 打印与报表, print, report crystal report, active report。
|
| |
|
| |
|
| |
|
|