vb.net - Issues with SQL Query -
Speaking silly as
, I have very little experience with SQL queries.
Issues with the following questions that I am generating within my Vb.net application
Update payment SET B1Code = '12345', ARInvoice = '54321', INV2Go = '00000' WHERE PatientID = '400' and product = 'consultation' and category = 'orthotics'
(I have created a test record in the database matching the above information)
It is being created in Vb.net with the following code:
String = as the slow query = "Update payment SET B1Code = '"& Amp; TxtB1Code.Text & amp; "', Arnivice =' '& amp; TxtARInvoice.Text & amp;"', INV2Go = '& amp; TxtInv2GoCode.Text & amp; "' Where Patient Id = '" & Integer Purs (TSTITIT. Text) & amp; "'and Product ='" & TxtProduct.Text & amp; "'and Hierarchical =' & amp; TxtPatientType.Text & amp;
Then my executed query function is being passed in such a way:
DatabaseFunctions.ExecuteQuery (query)
< P> and function: Public Shared Sub ExecuteQuery (ByVal SQL as String) CheckConnection () Dim CMD as New OdbcCommand (SQL, con) cmd.ExecuteNonQuery () End Sub < / Code> function works perfectly, I have the time to create / edit records using simple SQL queries created similarly The problem is that this particular query returns an error:
Error [07002 ض] [Microsoft] [ODBC Microsoft Access Driver] Expected very low parameter 1.
Maybe someone with more SQL experience can see me, what am I missing?
Thanks
This error indicates that the query does not exist.
Check your query again: Did you mean category
or category
?
Comments
Post a Comment