Solved

Access - Object is Locked message

Posted on 2000-04-05
9
532 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 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Familiarize people with the process of utilizing SQL Server views 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 Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

726 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