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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controls and Records will NOT update

Status
Not open for further replies.

dragongunner0351

Programmer
Mar 16, 2006
104
US
Hello All,
today something very strange happened to our DB, none of the records will update, the command buttons do not point were they are supposed to, if I click on a calendar control (example here) I get a cannot update error, I cannot select anything from any combo box controls because this is updating and as I just stated records are not updating, its as though the DB is locked. Last Friday all was well with the DB, today FUBAR! Aside from the error message about not being able to update, I am also getting Error '2046' SaveRecord is not available at this time. I have seen a few posts similar to Error 2046, however this problem seems to be affecting my DB across the board. I am currently running my DB on Windows Server 2003 SP2, Office 2003 with current updates and SP's, I am utterly lost and can not determine the root cause. If anyone has any suggestions I am all ears.
 
Do you have a separate frontend and backend? When no-one has the db open, do you have an ldb still? (if yes, try deleting the ldb file, and re-opening the db).

Max Hugen
Australia
 
Hello Max, thanks for the reply, yes I do have a fe and be, however when no one is in the DB the ldb deletes, currently no one is in and therefore there is no ldb. Any other suggestions?
 
Can you open the BE and edit a record in a table directly?

Max Hugen
Australia
 
Have you tried editing a record in a table via the FE?

Have you recently rolled out an updated version of the FE?

Max Hugen
Australia
 
No, I spoke with one of the users, he was inputing data then as he was saving the record he lost his network connection. He is on a laptop with a wireless connection. From what I have been able to figure is that the database is in some form of a locked state. What is strange is that on some portions of the subform I can manipulate the data, but other portions of the subform and form I can not.
 
It sounds like there may some corruption in the BE. Have you tried doing a Repair/Compact on the BE?

Max Hugen
Australia
 
Max, that was one of the first things I tried. I am about to lose my religion
 
He-he, "keep the faith". There's always an answer, though I've lost some hair during some very ugly probs in the past. :)

I'd try decompiling the FE, recompiling, then Repair/Compact.

Max Hugen
Australia
 
If it's still not working after that, I'd copy the BE to your pc, connect the FE to this copy, and try again (just in case there's a network issue, though I don't think this is the problem).

Max Hugen
Australia
 
Hey there Max still no go after the decompile and I have been working with a local copy since the problem
 
Ok, what else can we think of?

What is strange is that on some portions of the subform I can manipulate the data, but other portions of the subform and form I can not.
Let's concentrate on the subform. You indicate that you can edit data in some fields, but not others. Is the subform based on one table?
 
Yes, the form -> orders table, subform -> order details table. I am thinking that when there was a momentary loss of a network connection that the DB was put into a locked state. When I initially began looking into this problem I began by going through the various tables looking for anything obvious. Well, the user at the time of the network connection loss, was inputting a new customer. In the customer table I had one row blank and the new customer entry was populated with #####'s in all fields.
 
Locking of an Access file is controlled by the ldb file. You mentioned before that when no-one was using the mdb, there was no ldb, which indicates that Access has released any locks.

I'm puzzled that you can edit some fields on the subform, but not others, considering its based on just one table...

Try opening the query for the subform, switch to datasheet view, and check that you can edit every field of one record...



Max Hugen
Australia
 
OK, then the problem may be with the subform itself - possibly a corruption that wasn't fixed by previous steps.

Create a new subform - from scratch! - and try editing that. It can be just a rough 'n ready form, as we're just trying to isolate the cause of the problem.

Max Hugen
Australia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top