set rsc=fcn.getone("select * from class where ctype ="&Cstr("2"))
哪错了...?ctype 为文本数据,,,
set rsc=fcn.getone("select * from class where ctype ="&Cstr("2"))
哪错了...?ctype 为文本数据,,,
set rsc=fcn.getone("select * from class where ctype ='"&Cstr("2")&"'")
把值用单引号引进来。
set rsc=fcn.getone("select * from class where ctype ='" & Cstr("2") &"'")
文本的话在sql里要加单引号的。