| 发表于:2007-04-23 11:19:13 楼主 |
代码如下: public count as integer with adodc1 .connectionstring = "dsn=jczx " .username = "jczx1 " .password = " " .recordsource = "select * from djqsr where打印标志 = '否 ' " .refresh end with for count = 0 to adodc1.recordset.recordcount with adodc1.recordset text1.text = .fields( "铅品号 ") text2.text = .fields( "批号 ") text3.text = .fields( "生产单位 ") text4.text = .fields( "标准编号 ") text5.text = .fields( "生产日期 ") text14.text = .fields( "化验日期 ") text15.text = .fields( "化验员 ") format(text8.text, "#0.0000% ") = .fields( "银ag ") format(text10.text, "#0.0000% ") = .fields( "铜cu ") format(text12.text, "#0.0000% ") = .fields( "锑sb ") format(text7.text, "#0.0000% ") = .fields( "锡sn ") format(text9.text, "#0.0000% ") = .fields( "砷as ") format(text1.text, "#0.0000% ") = .fields( "铋bi ") format(text1.text, "#0.0000% ") = .fields( "铁fe ") format(text1.text, "#0.0000% ") = .fields( "锌zn ") format(text1.text, "#0.0000% ") = .fields( "总和 ") format(text1.text, "#0.0000% ") = .fields( "铅pb ") '.fields ( "打印标志 ")= "是 " .update .movenext end with form1.printform next count 错误提示:编译错误,变量要求-不能赋值到该表达式 光标停留在cout上 各位大侠请赐教呀! |
|
|
|
|