| 发表于:2007-03-16 14:13:31 楼主 |
运行该段程序的时候,系统提示 “实时错误 '3075 ':语法错误(操作符丢失)在查询表达式 '变压器i试验表.num '中。” 程序代码如下,请各位高手同仁指点,不胜感激!! private sub cmdsel_click() dim str11 as string, str22 as string, i as integer, str as string str11 = left(trim(str1), 3) set dbs = opendatabase(app.path & "\db\database.mdb ", false, false, ";pwd=02768772283 ") str = "select " & str22 & ".num, " & str22 & ".place, " & str22 & ".runnum, " & str22 & ".data, " & str22 & ".name, " & str22 & ".temp, " & str22 & ".humi from " & str22 & " where " & str22 & ".runnum = " & " ' " &str3& " ' "& "and " & str22 & "place = " & " ' " & str11 & " ' " & "order by " & str22 & ".data " set rsdata = dbs.openrecordset(str) call showmsf1(msflexgrid2) framshowdate.caption = str11 & str2 end sub |
|
|
|
|