what's mean?
if just a sensor as this:a user click different button to print or preview some data,then you can do it as the following:
when user clicked a button ,then you can make a suite SQL_var.
in the data report's initialize sub
do
step 1:close the datasouce.
step 2:open the datasouce use the special SQL_var.
step 3:set the datareport's datasouce as the new recordset
then you can get the required data for user
if just a sensor as this:a user click different button to print or preview some data,then you can do it as the following:
when user clicked a button ,then you can make a suite SQL_var.
in the data report's initialize sub
do
step 1:close the datasouce.
step 2:open the datasouce use the special SQL_var.
step 3:set the datareport's datasouce as the new recordset
then you can get the required data for user
解决方案 »
- VB文件操作
- 新手提问:关于用vb生成注册码的问题?
- 添加图片
- 用VB自带的报表生产,连接数据库测试成功。为什么运行的时候提示“无效数据源”???
- 用FileSystemObject里面的OpenTextFile打开一个文件文件,怎样将指针指到某一行,还有怎样知道有多少行内容
- 没人知道吗?
- 今天發了工資270/RMB,真TM郁悶.................................
- 请问怎么才能获得一个image控件的句柄,100分
- 怎样在文件中插入空格
- 哈哈,想要一个图标或图片,是一只手,想在MOUSEMOVE时将鼠标变成手(像链接)
- 是否可以对datareport中添加的控件编程呢
- 请教——分组打印的问题
好像是:
例如吧
DataReport1.Sections(1).Controls(1).Caption = "你好"
DataReport1.Sections(0).Controls(1).Caption = "aasdf"
DataReport1.Controls(1).DataMember = "command1"
DataReport1.Controls(1).DataField = "邮件ID"
你自己试吧