A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

selecting a default field when opening form



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 07:27 PM posted to microsoft.public.access.forms
bhrosey via AccessMonster.com
external usenet poster
 
Posts: 46
Default selecting a default field when opening form

I know this is probably really simple, but I need some help, please. When I
open a form to enter data, there are several fields on the form....Customer,
Part Number, Date, etc...how do I get my cursor to go to the field I want
when an operator opens the form? For example, when I open the form, I want
the cursor to be in the "Customer" field ready to enter data. Thanks for the
help

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201005/1

  #2  
Old May 4th, 2010, 07:43 PM posted to microsoft.public.access.forms
djsmitherman
external usenet poster
 
Posts: 1
Default selecting a default field when opening form

Use this code in the OnOpen event for the form:

Me.Customer.SetFocus

Insert the actual field name where I put 'Customer'.

This will work as long as the field is on the main form (not on a subform).

bhrosey wrote:
I know this is probably really simple, but I need some help, please. When I
open a form to enter data, there are several fields on the form....Customer,
Part Number, Date, etc...how do I get my cursor to go to the field I want
when an operator opens the form? For example, when I open the form, I want
the cursor to be in the "Customer" field ready to enter data. Thanks for the
help


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.