Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.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
Asp.net 使用where条件更新AccessDataSourceCCE_Asp.net_Sql_Ms Access - Fatal编程技术网

Asp.net 使用where条件更新AccessDataSourceCCE

Asp.net 使用where条件更新AccessDataSourceCCE,asp.net,sql,ms-access,Asp.net,Sql,Ms Access,正在尝试使用visual studio更新asp中的access数据库 有人能帮我吗 在给定字符串参数时尝试使用单引号 accessDatabase2.UpdateCommand = "UPDATE [Rooms] SET [Occupancy] = 1 Where [RoomType] = 'Single';" Exception Details: System.Data.OleDb.OleDbException: No value given for one or more requ

正在尝试使用visual studio更新asp中的access数据库


有人能帮我吗

在给定字符串参数时尝试使用单引号

accessDatabase2.UpdateCommand = "UPDATE [Rooms] SET [Occupancy] = 1 Where [RoomType] = 'Single';"
Exception Details: System.Data.OleDb.OleDbException: No value given for one or more   required parameters.
accessDatabase2.UpdateCommand = "UPDATE [Rooms] SET [Occupancy] = 1 Where [RoomType] = 'Single';"