Can't use SetFocus

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

I'm using Access 2007. I have a form in which I have a bound text box in the
form header called ENTER_PASSWORD. On the forms On Open Property, I have
entered the following code: Me.ENTER_PASSWORD.SetFocus

In a previous version of Access, this works. In this case, I get the
following error:

Microsoft Office Access doesn't allow you to use this method in the current
view.

Can someone tell me what I've done wrong?
 
Back
Top