在线等待(access数据语句问题)
我的表deviceip中有一个字段"index",字段类型是整型的,我是这样查找的:
dim i as integer,ip as string
i=2
ip="192.168.1.1"
Set prs = gDatabase.OpenRecordset("select * from port where index=i and deviceip='" & ip & "'")
总是出现"参数错误,期待是1"的错误,
问题点数:50、回复次数:1Top
1 楼zsgzsgzsg(zsg)回复于 2003-05-02 18:35:45 得分 50
Set prs = gDatabase.OpenRecordset("select * from port where [index]=" &i &" and deviceip='" & ip & "'")
Top




