• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1135
  • Last Modified:

Access Form: Make fields uneditable

I have a subform that shows records in datasheet view.  I'd like to be able to tab to the next record without having to go through each field in the records first.  I'd still like the fields to show, but only one of the fields to be editable or able to be selected (tabbed through).  Can anyone tell me how to accomplish this?
0
BBlu
Asked:
BBlu
  • 3
  • 2
  • 2
  • +2
4 Solutions
 
answer_dudeCommented:
Have you tried setting the .enabled property to False for the fields you don't want to tab to or be able to edit?
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You should also set the TabStop property of those controls to No. If you have only ONE control on your form with a TabStop=Yes, then tabbing will move to the next record when you tab out of that field.
0
 
zoom2000Commented:
Don't use  the Datasheet View , instead use "Continuous Form"
It 's more customizable ,
then u can handle key behavior of the subform
you can handle "Form_KeyDown" Event  and catch the KeyDown
when the user presses Down Arrow  

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

 If KeyCode = vbKeyDown Then
       DoCmd.GoToRecord , , acNext
       KeyCode = 0
  End If
End Sub


 
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Dale FyeCommented:
Actually, since you said "only one of the fields to be editable or able to be selected ", I would wet the TabStop property of the fields you don't want to be able to edit to "No", and would also set those fields "enabled" property to "False", or the "Locked" property to "True".  I prefer setting Locked to True, since disabling the control makes the text difficult to read.  When I do this, I will usually set the conditional formatting property of the control so that its background color changes to a light shade of red, to indicate the field cannot be edited.
0
 
Dale FyeCommented:
Oops, that should have read:

"I would set the TabStop"
0
 
BBluAuthor Commented:
setting the fields that I don't want the cursor to go to to "No" did the trick.  Explain if/why it is necessary to set the Tab Stop to "no", as well.
0
 
zoom2000Commented:
also you can make the properties
enabled : false
locked: yes

for the fields you don't  want them to be editable
0
 
BBluAuthor Commented:
Got it.  Thanks to all of you
0
 
BBluAuthor Commented:
Thanks, Everyone.  I'm still confused why I'd need to do more than one of the above solutions.  Setting the 'enabled' property to False alone did the trick.  But I'll red about the effects of doing the other things.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now