Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 如何使用vb.net检查ms access数据库中是否存在记录?_Sql_Vb.net_Where Clause_Multiple Records - Fatal编程技术网

Sql 如何使用vb.net检查ms access数据库中是否存在记录?

Sql 如何使用vb.net检查ms access数据库中是否存在记录?,sql,vb.net,where-clause,multiple-records,Sql,Vb.net,Where Clause,Multiple Records,我必须在发布系统中发布空缺职位。但在保存到数据库中之前,如果文本已经存在于同一行的记录中,它将检查“POSIT”列/字段中的职位标题和“itemno”列/字段中的项目编号。我不知道在.Open子句中多加“WHERE”是正确的,还是可以加“AND”来避免多加“WHERE”。你能帮我解决这个问题吗。谢谢部分代码如下所述: 此代码行中出现错误: .Open("Select * from pop where vacantnotvacant ='" & "vacant" & "' , wh

我必须在发布系统中发布空缺职位。但在保存到数据库中之前,如果文本已经存在于同一行的记录中,它将检查“POSIT”列/字段中的职位标题和“itemno”列/字段中的项目编号。我不知道在.Open子句中多加“WHERE”是正确的,还是可以加“AND”来避免多加“WHERE”。你能帮我解决这个问题吗。谢谢部分代码如下所述:

此代码行中出现错误:

.Open("Select * from pop where vacantnotvacant ='" & "vacant" & "' , where Position = '" & ListViewEx1.Items.Item(h).SubItems(2).Text & "'", psipopcon, 2, 3)

试着用这个代替你的开放式线路

.Open("Select * from pop where vacantnotvacant ='" & "vacant" & "' and Position = '" & ListViewEx1.Items.Item(h).SubItems(2).Text & "'", psipopcon, 2, 3)

试着用这个代替你的开放式线路

.Open("Select * from pop where vacantnotvacant ='" & "vacant" & "' and Position = '" & ListViewEx1.Items.Item(h).SubItems(2).Text & "'", psipopcon, 2, 3)

非常感谢Craig T.现在它开始工作了。竖起大拇指!我希望你能在我未来的问题上帮助我。非常感谢克雷格T。现在它开始工作了。竖起大拇指!我希望你能在我将来的问题上帮助我。