| 发表于:2007-01-30 14:56:45 楼主 |
strcon1 = "provider=sqloledb.1;password=linux;persist security info=true;user id=system;initial catalog=shopdata;data source=192.168.0.2 " con1.open strcon1 set rs1 = new adodb.recordset strsql1 = "select posinfo.printername,cancelprint.canceltime,cancelprint.describ from cancelprint,posinfo where posinfo.posno=cancelprint.printername and canceltime> " + " ' " & oldtime & " ' " + "and canceltime < " + " ' " & now & " ' " rs1.open strsql1, con1 if rs1.eof and rs1.bof then count1 = count1 + 1 label55.caption = strsql1 else text7.text = label26.caption + " " + cstr(rs1.fields(0)) + " " + cstr(rs1.fields(1)) + " " + cstr(rs1.fields(2)) count1 = count1 + 1 end if con1.close 我现在的代码只能显示处一条记录 怎么才能枚举处所有记录呢 有几条显示几条 |
|
|
|
|