vb.net操作Access数据库INSERT INTO问题
在操作Access数据库INSERT INTO问题时,遇到无法将变量的值,插入到数据库中。
AS INSERT INTO Products (ProductName, SupplierID, CategoryID) Values ('"&inProductName&"', '"&inSupplierID&"','"&inCategoryID&"')
其中,inProductName、inSupplierID、inCategoryID为一变量,比如这些变量在内存中分别等于:Test、123、456。
当执行插入时会直接报错。不知道上述插入表达式哪里出了错,请大家指导。谢谢!