Tab Postion when adding a record

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

In the form there is command button to add a new record.
When the command button is select to add a new record, the
tab or cursor remains on the add button icon. How can one
select the add new record command button and once this is
clicked to have the cursor begin in your first tab postion
and which is my first field in the form?
 
In the form there is command button to add a new record.
When the command button is select to add a new record, the
tab or cursor remains on the add button icon. How can one
select the add new record command button and once this is
clicked to have the cursor begin in your first tab postion
and which is my first field in the form?

Put a line in the VBA code in the button's Click event:

Me!controlname.SetFocus

where the controlname is the desired control's name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top