Re: Problem using Replace function with Memo field

From: Christine in New Jersey (ChristineinNewJersey_at_discussions.microsoft.com)
Date: 03/08/05


Date: Tue, 8 Mar 2005 07:09:01 -0800

John:

Thanks. I will try creating a new database file and copy the data to the new
file and see if that solves the problem. I will let you know how I make out.

Christine

"John Nurick" wrote:

> Hi Christine,
>
> One possibility is that the message means what it says, that something
> else (a bound form?) has locked the record(s) in question.
>
> But a web search suggest that it's also possible that the database (or
> to be precise the part of the MDB file where the contents of this memo
> field in these particular records are stored) has become corrupt.
>
> See Tony Toews's corruption FAQ at
> http://www.granite.ab.ca/access/corruptmdbs.htm, especially "To retrieve
> your data from a Corrupt Microsoft Access MDB" at
> http://www.granite.ab.ca/acces­s/corruption/corruptrecords.ht­m
>
>
>
>
>
>
> On Mon, 7 Mar 2005 07:21:02 -0800, "Christine in New Jersey"
> <ChristineinNewJersey@discussions.microsoft.com> wrote:
>
> >John:
> >
> >Thanks for replying. Sorry I have taken so long to get back to you, but I
> >needed to work on another project before I could get back to this one.
> >
> >I've determined that the problem is not with the replace function. Rather,
> >whenever I attempt in code to change the field value of a memo field that
> >contains more than 2036 characters, I get the following error:
> >
> >"Run-time '3188': Could not update; currently locked by another session on
> >this machine"
> >
> >This happens not only on my computer using Access 2003, but also on my
> >client's computer using Access 2000.
> >
> >Fields that are 2036 characters or less work fine.
> >
> >Here is a reprensentation of the actual code:
> >
> >With vTable (recordset variable; vFieldName string variable also defined)
> > (other code here)
> > .Edit
> > .Fields(vFieldName) = "This is a test" ***ERROR OCCURS HERE***
> > .Update
> >End With
> >
> >Any ideas?
> >
> >Thanks, Christine
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
>



Relevant Pages

  • RE: Paste Append
    ... Both of your posts lead me to believe that the database is corrupt. ... creating a new database file and importing everything from the old to the ... If the OLE field is still a problem, create a Make Table query based on the ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Looking for Fast Database
    ... Carsten Unterberg | Test-Framework ... Which version of SQL CE were you using at the time? ... shouldn't be used for the database file? ... dangerours and can corrupt your database. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Product Activation suddenly appearing after 18 months
    ... > Unplug or disconnect your internet connection. ... Press f8 twice and chose safe mode. ... encrypted database file, and MS has yet to create a database file that ... PA is just corrupt! ...
    (microsoft.public.windowsxp.general)
  • Re: My sqlmobile data file corrupted
    ... Passwords are cases sensitve remember. ... >> corrupt. ... >> error that said "The database file may be corrupted. ...
    (microsoft.public.sqlserver.ce)