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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you tried setting the .enabled property to False for the fields you don't want to tab to or be able to edit?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Dale FyeOwner, Developing Solutions LLCCommented:
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.
Dale FyeOwner, Developing Solutions LLCCommented:
Oops, that should have read:

"I would set the TabStop"
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.
also you can make the properties
enabled : false
locked: yes

for the fields you don't  want them to be editable
BBluAuthor Commented:
Got it.  Thanks to all of you
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.