April 23, 2008

Create an Access form with no focus on opening

Date: viagra alternative April 22nd, 2008

Author: Mary Ann Richardson

You’ve created a read-only form, yet the first control is highlighted when the form is opened. To prevent users from trying to enter data, you’d like no focus placed on any of the form controls. One way to do this is to create an unbounded text box, resize it so it’s barely visible, and then place it first in the tab order.

Follow these steps:

  1. Open the form in Design view.
  2. Click the Text Box control tool.
  3. Click and drag to create a small text box control below the last control in the form.
  4. Delete the text box label.
  5. Right-click the text box and select Properties to display the Properties box, if necessary.
  6. Click the Format tab in the Properties box.

  1. Click in the Width property box and enter .00001.
  2. Click in the Height property box and enter .00001.

The resultant text box is shown below.

  1. In Access 2007, click the Arrange tab in the Form Design tools group.
  2. In the Control layout group, select Tab Order. (In Access 2002/2003, go to View | Tab Order.)

  1. Under Custom Order, click to select the text box and drag it to the top of the list.
  2. Click OK.

Now when the form is opened, the focus will be placed on the unbounded text box, which is too small to be visible.

Permalink • Print • Comment

Leave a comment

You must be logged in to post a comment.

Made with WordPress and an easy to customize WordPress theme • Sky Gold skin by Denis de Bernardy