Hello everyone, I am still having trouble deleting a row from my database. I am creating a employment site, which is used to list job openings. In order for the user to delete the job opening after the position is taken, I have set up Access 2000 to automatically assign every job opening an ID number. My problem is that I can't make it delete by this ID number, Here is the code I am using and a copy of the error message I am receiving. I would greatly appreciate any help on this matter.
' *** Creating Connection Object and opening the database ***
data_source= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("../../data/emp.mdb"
SQLStmt = "DELETE DISTINCTROW lngID FROM employment WHERE lngID = " & lngID & ""
Set con = Server.CreateObject("ADODB.Connection"
con.Open data_source
con.Execute SQLStmt
Microsoft JET Database Engine error '80040e14'
Extra ) in query expression '(lngID =)'.
/HuntGuillot/hg-remove2.asp, line 120
' *** Creating Connection Object and opening the database ***
data_source= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("../../data/emp.mdb"
SQLStmt = "DELETE DISTINCTROW lngID FROM employment WHERE lngID = " & lngID & ""
Set con = Server.CreateObject("ADODB.Connection"
con.Open data_source
con.Execute SQLStmt
Microsoft JET Database Engine error '80040e14'
Extra ) in query expression '(lngID =)'.
/HuntGuillot/hg-remove2.asp, line 120