Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Databases

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hello

How can I delete a record from a recordset. Im using an Access database. I open it like this.


adOpenForwardOnly = 0
adLockReadOnly = 1
adCmdTable = 2
nCount = 0

Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")

objConn.Open strConnect

objRS.Open "Users", objConn, adOpenForwardOnly, adLockReadOnly, adCmdTable


thanks
 
MSDN says:
adLockReadOnly = 1 Indicates read-only records. You cannot alter the data.
Try using instead of it:
adLockOptimistic = 3 Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Update method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top