Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Multiuser / Networking / November 2004

Tip: Looking for answers? Try searching our database.

Getting corrupt records with autonumber field bcoming null

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Baker - 21 Nov 2004 23:15 GMT
I have a front end system on client machines and the backend on the network.

Occasionally it becomes corrupted with  a record losing its autonumber
primary key in the main table. At times I am able to either do a compact and
repair on the backend, or I may have to delete the record and then do a
compact and repair. At other times the corrupted record wont delete and I
have to use an uncorrupted/record empty copy of the table and use a query to
copy all records from the corrupted table to the copy. In this case the
corrupted record will not copy to the new table and is effectively deleted.

I hadn't been able to work out why the corruption has been occurring, but I
suspected it was a locking issue. There are about 10 concurrent users.

I have been doing some further development and came across something which
triggered the problem.
The front end always has open a form which has as its recordsource the main
table. I was developing another form which when a particular field is
updated it uses a function to update a field in the main table.

The problem occurs (i.e. corrupts a record and then the table) if the record
being updated on the new form by the function happens to be open in the
hidden main form. (Although it happens intermittently). The  "Write
Conflict" dialog box comes up (i.e. "Save Record"  "Copy to clipboard"
"Drop Changes") and if either "Save Record"  or  "Drop Changes" is chosen
the record may become corrupt.

Any help greatly appreciated

John Baker
tina - 22 Nov 2004 20:24 GMT
is it necessary to have the main form open at all times? if so, is it
necessary to have the main form bound to a data table - or, at least, to
that particular data table?

> I have a front end system on client machines and the backend on the network.
>
[quoted text clipped - 25 lines]
>
> John Baker
Tony Toews - 22 Nov 2004 22:49 GMT
>Occasionally it becomes corrupted with  a record losing its autonumber
>primary key in the main table.

First thing I'd check is that all the client systems are running the
same version of MS Jet.    A new client has been having occasional
similar problems and this is the first thing on my list of things to
check for them.

Tony
--
Tony Toews, Microsoft Access MVP
  Please respond only in the newsgroups so that others can
read the entire thread of messages.
  Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.