Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Lock and unlock records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 17 May 2007 13:13 GMT
Hello,
   I have a form that accesses a table.
   On the form is a Yes/No checkbox (from the table).
   I want to be able to lock all the other fields in the record (or just
lock the whole record) by clicking the Yes/No checkbox.
   What's the best way to go about this?

Thanks beforehand.
Eric Blitzer - 17 May 2007 13:57 GMT
In the after update of the checkbox add
If me.checkboxname = -1 then
me.allowedits = false
else
me.allow edits = true
end if

If you are using tabs and subforms more coding is required

> Hello,
>     I have a form that accesses a table.
[quoted text clipped - 4 lines]
>
> Thanks beforehand.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.