Computer Learning Zone CLZ Access Excel Word Windows

We have this one life to appreciate the grand design of the universe and for that, I am extremely grateful.

-Stephen Hawking
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Deselect first highlighted row
WES WES 

12 months ago
I have two datasheet sub-forms on the same form, both are display only and not for user input. They are locked and disabled, but one form has the first row selected or highlighted. The other form does not. I am not sure what steps I took to remove the highlighted row but I'd like both forms to not have the highlighted row. I googled extensively and saw many people asked but didn't see any resolution.

If I click the 2nd row and tab away and come back then I do get the unselected view that I am trying to get. Thanks in advance.

Found a post to try this code, but it didn't work:

Private Sub Form_GotFocus()
  Me.SelHeight = 0
End Sub
Adam Schwanz  @Reply  
           
12 months ago
Set the focus somewhere else with the On Load or On Current Event of the main form.

FieldName.SetFocus

Maybe you set it to a textbox that you set the height to 0 so you don't see it or something.
SetFocus
Sami Shamma  @Reply  
             
12 months ago
Watch the following video in which Richard explains why you should NOT use data sheets. Subdatasheets
WES WES OP  @Reply  

12 months ago
@adam, I'll try this
@sami, this is a subform in datasheet view, not a subdatasheet as mentioned in the video posted.

@both, What's weird is if I open only the sub form the row is deselected. But when I open the main form with the embedded into a tab control, the sub form the top row is highlighted. Then if I click the 2nd row and go to another tab and come back neither 1st or 2nd row are selected which is the view I'm trying to get to. (don't see a way to post a screenshot if you would like to see one)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 10:23:05 PM. PLT: 1s