Re: Error => -2147467259 Could not save; currently locked by another



Mike wrote:
Hi,
I am using VB 6 with Sp6 (XP sp2), Jet 4.0 and Access database.
I have one table it has Memo field and I am trying to save Memo filed
that time it gives me error
"-2147467259 Could not save; currently locked by another user."

While adding new records with same number of character is fine (more
than 3000 Characters).
Here is the sample code
Private Sub Command2_Click()
Dim ssql As String
Dim cnn As New ADODB.Connection
cnn.Open gCnnstring
ssql = "UPDATE Test_Memo SET Comment =" & Chr(34) &
Trim(TxtInput) & Chr(34)
ssql = ssql & " WHERE Record_ID=" & mRecordID
cnn.Execute ssql
cnn.Close
End Sub

I don't work with Jet backends anymore, and even when I did I avoided Memo
fields, so I've never encountered this situation. The only time I've ever
seen the error you cited was when insufficient file-system permissions for
the folder containing the database were granted to the user of the database.
All database users required Modify (read/write) permissions for that folder
because they need to create, modify and delete the database locking file
(dbname.ldb) in that folder.

If that's not the case and you fail to get help here, you should post to one
of the Access newsgroups (look under "Office Solutions" in the table of
contents).

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • Re: How to repair index corruption
    ... Create a new empty database. ... Go back to the old database and create a new table, without the memo field, ... and append all memo-less rows to it. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: 3167 error - record is deleted in replicated database
    ... taking your form with the memo on it and removing the control ... Then, in the form's OnCurrent event, set the unbound memo ... each row has the parent record's PK and the memo field. ... by trying to import all tables into another clean database. ...
    (microsoft.public.access.replication)
  • Re: Upgrade to Access 2007?
    ... Can you leave the memo field out of the query on one side? ... database is compacted and repaired every day. ... Tony Toews has an excellent web page on database corruption. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: What am I missing?
    ... memo populates. ... I ran the query from the SQL view of a query in Access ... One problem with memo fields is corruption. ... I suggest opening up a new database file and creating the table. ...
    (microsoft.public.access.queries)
  • Re: HELP!!! Corrupt data table
    ... The table stores only a pointer to the location where the memo field is ... Change it to a Make Table query. ... Open the new table in design view, and add the memo field. ... General tips on recovering from corruption: ...
    (microsoft.public.access.formscoding)