?
Solved

Access - Object is Locked message

Posted on 2000-04-05
9
Medium Priority
?
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:MacRena
ID: 2704584
jwilk8284,

Any Pictures or other interesting controls on the FORM?

Mac
0
 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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