如何使报表(datareport)获得控件(ex:文本框)中的参数,急! Dr_Jc_Bhd.Sections(2).Controls("Label14").Caption = Text1.Text 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 '************打印代码供参考************ Dr_Jc_Bhd.Sections(2).Controls("Label14").Caption = Rs_Jc_Bhd.Fields("hth") & "" Dr_Jc_Bhd.Sections(2).Controls("Label15").Caption = Rs_Jc_Bhd.Fields("invoice") & "" Dr_Jc_Bhd.Sections(2).Controls("Label16").Caption = Rs_Jc_Bhd.Fields("spmc") & "" Dr_Jc_Bhd.Sections(2).Controls("Label17").Caption = Rs_Jc_Bhd.Fields("fprq") & "" Dr_Jc_Bhd.Sections(2).Controls("Label18").Caption = Rs_Jc_Bhd.Fields("lcno") & "" Dr_Jc_Bhd.Sections(2).Controls("Label19").Caption = Rs_Jc_Bhd.Fields("destport") & "" Dr_Jc_Bhd.Sections(2).Controls("Label21").Caption = Rs_Jc_Bhd.Fields("baoz") & "" Dr_Jc_Bhd.Sections(2).Controls("Label24").Caption = Rs_Jc_Bhd.Fields("mt") & "" Dr_Jc_Bhd.Sections(2).Controls("Label33").Caption = Rs_Jc_Bhd.Fields("bz") & "" Dr_Jc_Bhd.Sections(2).Controls("Label25").Caption = Rs_Jc_Bhd.Fields("bianhao") & "" If Rs_Jc_Bhd.Fields("lffp") = 1 Then Dr_Jc_Bhd.Sections(2).Controls("label41").Caption = "YES" Else Dr_Jc_Bhd.Sections(2).Controls("label41").Caption = "NO" End If If Rs_Jc_Bhd.Fields("lfzc") = 1 Then Dr_Jc_Bhd.Sections(2).Controls("label42").Caption = "YES" Else Dr_Jc_Bhd.Sections(2).Controls("label42").Caption = "NO" End If If Rs_Jc_Bhd.Fields("zxbz") = 1 Then Dr_Jc_Bhd.Sections(2).Controls("label22").Visible = True Dr_Jc_Bhd.Sections(2).Controls("label12").Visible = False Dr_Jc_Bhd.Sections(2).Controls("label21").Visible = False Else Dr_Jc_Bhd.Sections(2).Controls("label12").Visible = True Dr_Jc_Bhd.Sections(2).Controls("label21").Visible = True Dr_Jc_Bhd.Sections(2).Controls("label22").Visible = False End If 第一种方法我已试过,可以!谢谢!参数很多时是不是要建立很多tem表?第二种还在看,稍后,但不太懂!能加多少我就加多少,thanks! 第一种方法我已试过,可以!谢谢!参数很多时是不是要建立很多tem表?第二种还在看,稍后,但不太懂!能加多少我就加多少,thanks! 关于宿主窗体的问题。 富文本框中有几千行,如何快速显示到指定行? vb winsck点对点通信 VB6的报表DataReport显示速度问题 痛苦啊,100万条记录的MDB数据库,全部读入内存需要30分钟!!! 用FLASH.OCX控件,怎样在其上单击鼠标停止,或暂停? VB可以直接控制打印机吗?怎么写代码? 如何在IE中嵌入工具条&&&&&&&&&&&&&################# 用webbrowser访问迅雷地址,如何禁止自动弹出迅雷?我只是想获取那个迅雷地址,不想弹出 如何绘制等高线? 怎样在程序中调用.chm文件? 数据处理中如何保证数据的完整性?
Dr_Jc_Bhd.Sections(2).Controls("Label14").Caption = Rs_Jc_Bhd.Fields("hth") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label15").Caption = Rs_Jc_Bhd.Fields("invoice") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label16").Caption = Rs_Jc_Bhd.Fields("spmc") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label17").Caption = Rs_Jc_Bhd.Fields("fprq") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label18").Caption = Rs_Jc_Bhd.Fields("lcno") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label19").Caption = Rs_Jc_Bhd.Fields("destport") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label21").Caption = Rs_Jc_Bhd.Fields("baoz") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label24").Caption = Rs_Jc_Bhd.Fields("mt") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label33").Caption = Rs_Jc_Bhd.Fields("bz") & ""
Dr_Jc_Bhd.Sections(2).Controls("Label25").Caption = Rs_Jc_Bhd.Fields("bianhao") & ""
If Rs_Jc_Bhd.Fields("lffp") = 1 Then
Dr_Jc_Bhd.Sections(2).Controls("label41").Caption = "YES"
Else
Dr_Jc_Bhd.Sections(2).Controls("label41").Caption = "NO"
End If
If Rs_Jc_Bhd.Fields("lfzc") = 1 Then
Dr_Jc_Bhd.Sections(2).Controls("label42").Caption = "YES"
Else
Dr_Jc_Bhd.Sections(2).Controls("label42").Caption = "NO"
End If
If Rs_Jc_Bhd.Fields("zxbz") = 1 Then
Dr_Jc_Bhd.Sections(2).Controls("label22").Visible = True
Dr_Jc_Bhd.Sections(2).Controls("label12").Visible = False
Dr_Jc_Bhd.Sections(2).Controls("label21").Visible = False
Else
Dr_Jc_Bhd.Sections(2).Controls("label12").Visible = True
Dr_Jc_Bhd.Sections(2).Controls("label21").Visible = True
Dr_Jc_Bhd.Sections(2).Controls("label22").Visible = False
End If
第二种还在看,稍后,但不太懂!
能加多少我就加多少,thanks!
第二种还在看,稍后,但不太懂!
能加多少我就加多少,thanks!