mdb / dot net 1.0 / can't delete for some reason

F

Filip Wtterwulghe

Hello,

I try to delete a record from a MDB file , but I get this strange error
"Syntax error (missing operator) in query expression 'nicexport where admno
= 43469' . Insert / Select works without a problem . It's only this delete
that raises a problem . Strange is that the error message , does not show
the delete statement .

Does anybody have an idea ?

Dim oCom As New OleDb.OleDbCommand()

Try

oCom.Connection = pConnection

oCom.CommandText = "delete nicexport where admno = " & nPAdmNr

oCom.ExecuteNonQuery()

Catch exc As Exception

Call ShowError(UC_ERR_SOURCE, "AdmDelete")

End Try

oCom = Nothing



Filip W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top