Hey, this might sound like a stupid question, but I am new to ASP. I have made a site that 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 an ID number that Access 2000 assigns automatically. The problem is, I can't set it up to delete by this ID number. Can anyone please help me? Here is the code I am using
*** Declaring variables ***
Dim strID, SQLStmt, con, data_source
*** Receiving values from Form ***
strID = Request.Form("ID"
*** Creating Connection Object and opening the database ***
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("../../database.mdb"
SQLStmt = "DELETE DISTINCTROW strID FROM employment WHERE (strID ='" & strID & "')"
Set con = Server.CreateObject("ADODB.Connection"
con.Open data_source
con.Execute SQLStmt
*** Declaring variables ***
Dim strID, SQLStmt, con, data_source
*** Receiving values from Form ***
strID = Request.Form("ID"
*** Creating Connection Object and opening the database ***
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("../../database.mdb"
SQLStmt = "DELETE DISTINCTROW strID FROM employment WHERE (strID ='" & strID & "')"
Set con = Server.CreateObject("ADODB.Connection"
con.Open data_source
con.Execute SQLStmt