Thank you both! I wound up figuring it out by just trying out SetFocus; I was about to post my little victory when I saw that you had already replied!
Take care, ...and salud...
Thank you both! I wound up figuring it out by just trying out SetFocus; I was about to post my little victory when I saw that you had already replied!
Take care, ...and salud...
A couple of explanations:
As you've found out, Paul's
Me.cboTaskChoose.SetFocus
works.
So would
cboTaskChoose.SetFocus
as well as
DoCmd.GoToControl "cboTaskChoose"
DoCmd.GoToControl takes a String as an Argument, and Me.cboTaskChoose returns a String, but the problem with
DoCmd.GoToControl Me.cboTaskChoose
was that the String that Me.cboTaskChoose returns, and is providing
DoCmd.GoToControl Me.cboTaskChoose
as an Argument, is the Value of cboTaskChoose, not the name of the Control! And there was no Control that matched the Value of cboTaskChoose.
Also, several comments pointed out the IsEmpty() is inappropriate here, but didn't explain why. It's inappropriate because IsEmpty() is used against a Variable, not against a Control/Field. It's used to test whether or not a Value has been assigned to a Variable.
Linq ;0)>
Thank you both for your replies!
I had figured it out all on my own by trying out SetFocus and it worked! I was just signing in here to share my little victory when I saw that you both had already posted the answer. Thanks again!