shanuragu
06-11-2003, 01:46 AM
How can I delete a specific record from an access db table in ASP
Delete From table name Where id=.. not working???
ShaRa
Delete From table name Where id=.. not working???
ShaRa
|
Click to See Complete Forum and Search --> : Delete a specific record in ASP (MS Access) shanuragu 06-11-2003, 01:46 AM How can I delete a specific record from an access db table in ASP Delete From table name Where id=.. not working??? ShaRa Bullschmidt 06-11-2003, 09:28 AM This code to delete a record has worked for me: ' Delete rec. ' Set sql. strSQL = "DELETE " strSQL = strSQL & "FROM tblCust " strSQL = strSQL & "WHERE (CustID=" & Chr(39) & CustIDOrig & Chr(39) & ")" ' Update. objConn.Execute strSQL Bullschmidt 06-11-2003, 08:00 PM Of course, this: ... can just be coded as follows: Dave, You are right of course! I guess using Chr(39) instead of a single quote just feels right to me somehow. Perhaps it's 6 of one, half dozen of the other... :) shanuragu 06-12-2003, 03:16 AM Thanks ShaRa Bullschmidt 06-12-2003, 03:22 AM Glad we could help! :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |