ADO update to VFP database
- From: franky <franky@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 11:48:16 -0700
Hello,
I'm attempting to connect to a Visual FoxPro database and make an update.
I'm able to make the connection but whenever I attempt to make the edit I get
the following error:
Current Recordset does not support updating. This may be a limitation of
the proivder, or of the selected locktype
This is a 3rd party VFP8.0 database. Its seems like the record locktype is
being ignored. Any sugestions? Here is the code i'm executing:
Dim cnn1 As ADODB.Connection
Dim rstNote As ADODB.Recordset
Dim strCnn As String
Dim sql As String
Set cnn1 = New ADODB.Connection
strCnn = "Provider=vfpoledb.1;" & _
"DSN=sbt"
cnn1.Open strCnn
Set rstNote = New ADODB.Recordset
Set rstNote.ActiveConnection = cnn1
rstNote.CursorType = adOpenKeyset
rstNote.LockType = adLockOptimistic
sql = "SELECT itmmemo " & _
" FROM icitem01 WHERE Item = 'HF02-008-ELLI '"
rstNote.Open sql
ERROR OCCURS ON THIS STATEMENT
rstNote!itmmemo = "test"
Thanks in advance.
.
- Follow-Ups:
- RE: ADO update to VFP database
- From: Rich
- RE: ADO update to VFP database
- Prev by Date: Re: Not enough storage is available to process this command
- Next by Date: ADO provider for Oracle which supports AbsolutePage property
- Previous by thread: ADODB Command Memory Leak - Source Sample
- Next by thread: RE: ADO update to VFP database
- Index(es):
Relevant Pages
|
|