how do I unselect a record or clear my selection in datasheet view

Posted on 2005-03-12
Medium Priority
Last Modified: 2012-06-27
I have a form with 3 sub form, all in data sheet view.

When any part of the record is clicked on, the entire record is selected with this:

    DoCmd.RunCommand acCmdSelectRecord

Once I loose focus on one subform I want to clear the record selection in that subform.

I assume that I should use the subform event "on lost focus" to trigger this event, but I do not know how to unslect the record.

How do I unselect the record?
Question by:patrick20001
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 51

Accepted Solution

Gustav Brock earned 1000 total points
ID: 13525130
You could create a tiny textbox, txtHideFocus, which must be enabled and visible.
Then set focus to this as you leave the subform.


Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question