Solved

Access - Object is Locked message

Posted on 2000-04-05
9
486 Views
Last Modified: 2008-02-20
I recently started getting this message from MS Access 97, whenever a particular form appears:

"The object is locked, so any changes you make will be discarded when the form is closed.  Click Save As/Export on the File menu and save the object under a different name."

What is the meaning of this message and how does this issue usually get resolved?

It never appeared until after the mdb file was converted to mde.
0
Comment
Question by:jwilk8284
  • 5
  • 4
9 Comments
 
LVL 4

Expert Comment

by:MacRena
ID: 2687557
jwilk8284,

Please open the .mdb and set the Form's RecordLocks property to "No Locks".  Then recompile it to the .mde and see if that fixes it.

If that doesn't fix it, please tell me what controls and other objects exist on the Form (excluding labels).

What I'm looking for here is if you can determine the "object" that Access is reporting is locked.

Mac

0
 

Author Comment

by:jwilk8284
ID: 2703676
MacRena,

The RecordLocks property is set to "No Locks".

There are several locked fields on this form.  The intention is to allow the user to view the information but not make any changes.

One field has "Data Entry" = No.

There are some command buttons - all of them activate different macros when clicked.

I originally believed this was a problem with the conversion to .mde type of file.  Probably not.  I observed it happening on an .mdb type of file.  
0
 
LVL 4

Accepted Solution

by:
MacRena earned 100 total points
ID: 2704510
jwilk8284,

I have some programs with "Locked" textboxes that show data but won't accept changes.  That does not cause the message you are describing.

Just so we aren't chasing our tails, do a repair on the data database.

When you say
>>"One field has "Data Entry" = No"<<
Could you possibly mean a FORM has that setting?  As far as I know, textboxes and other "field" controls are not capable of that.  

But that only determines if the FORM  will shown all of the records (Data Entry = No) or just the new one (Data Entry = Yes).

Is the FORM that gives the message set differently than other FORMS?

What Security do you have on the Database?  Are any FORMS protected in any way?

I confess I don't remember ever seeing this message in this situation, so I am hoping to fix it by hit-or-miss.  That means, if the repair doesn't fix it, you will have to compare this FORM with other FORMS to see differences.

We'll keep at it.

Mac

0
 
LVL 4

Expert Comment

by:MacRena
ID: 2704584
jwilk8284,

Any Pictures or other interesting controls on the FORM?

Mac
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:jwilk8284
ID: 2704753
MacRena,

The RecordLocks property is set to "No Locks".

There are several locked fields on this form.  The intention is to allow the user to view the information but not make any changes.

One field has "Data Entry" = No.

There are some command buttons - all of them activate different macros when clicked.

I originally believed this was a problem with the conversion to .mde type of file.  Probably not.  I observed it happening on an .mdb type of file.  
0
 
LVL 4

Expert Comment

by:MacRena
ID: 2704784
jwilk8284,

Did you respond?

I don't understand how your previous Comment was reproduced here 4 1/2 hours later after I posted 2 Comments.

Mac
0
 

Author Comment

by:jwilk8284
ID: 2704823
MacRena,

Sorry about the 4/11/2000 11:20 am comment - my previous comment was re-posted by mistake.

I will try a database repair and let you know (tonight or tomorrow).

I stand corrected "Data Entry" = No" applies to the form.  As I understand it, this means that only existing records can be displayed.

Will get back to you after trying to repair the database.


0
 

Author Comment

by:jwilk8284
ID: 2727865
MacRena,

I tried a database repair and did not have any problem after that. Apparently that takes care of the problem.  Thank you.  100 points.

0
 
LVL 4

Expert Comment

by:MacRena
ID: 2728905
jwilk8284,

Great!  Glad it worked!

One additional remark - "Data Entry = No" will show all records, including a NEW record (one CAN be created here) but "Data Entry = Yes" will ONLY show the NEW record.  You can not show existing records when set to Yes.  I have had to write code to prevent adding new records to a form.  If you find a way to get "Only Existing Records" to show in a Property setting, please tell me about it. :?)

Mac
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now