If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > PC based Database Applications > Microsoft Access > lock rows in table whilst allow edits in others

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Feb 2013
Posts: 1
lock rows in table whilst allow edits in others


I have a form that has a number of rows and i would like users to be able to edit some rows but not other. the non edit rows will have an entry in a field that the other won't.

Is it possible to have diffrent edit right in the same form but for diffrent rows?
Reply With Quote
  #2 (permalink)  
Join Date: Jun 2005
Location: Richmond, Virginia USA
Posts: 2,519
If you're saying that if a given Control has data in it then that Record will not allow editing, then, replacing TargetField with the actual name of the Textbox that holds the Field that this will be based on:
Private Sub Form_Current()
 If Nz(Me.TargetField, "") <> "" Then
  Me.AllowEdits = False
  Me.AllowEdits = True
 End If
End Sub

If this is not the situation, you need to explain your need a little more clearly.

Linq ;0)>
Hope this helps!

The Devil's in the Details!!

All posts/responses based on Access 2003/2007

Last edited by Missinglinq; 02-11-13 at 18:12.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On