[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DBstatus

Posted on 1998-12-21
3
Medium Priority
?
192 Views
Last Modified: 2010-05-03
Hello experts,

I'm working with a database application and are specifying readonly as false. I would like to change this to True in runtime. I can't get it to work.
I use .MDB files.

Regards
0
Comment
Question by:soft4u
3 Comments
 
LVL 3

Expert Comment

by:jjbyers
ID: 1451747
How are you connecting to the database, ADO, DAO, Datacontrol?

Thanks
jjb
0
 

Author Comment

by:soft4u
ID: 1451748
I use Datacontrol.


0
 
LVL 1

Accepted Solution

by:
advancefiber earned 200 total points
ID: 1451749
By using data control, you need to close the form which the control resides on and terminate the reference by:

Set myForm = Nothing

Then re-load it again with ReadOnly = True


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

826 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