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  

Position Cursor



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2010, 11:19 PM posted to microsoft.public.access.forms
Summing multiple fields on a form
external usenet poster
 
Posts: 38
Default Position Cursor

When I click on Add a form from the switchboard, how do I tell it where to
place the cursor. When my form loads, I would like to cursor to be in the
fieldname 'Sign In Date'

Thx
  #3  
Old March 27th, 2010, 12:41 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Position Cursor

On Fri, 26 Mar 2010 16:19:01 -0700, Summing multiple fields on a form
t.com wrote:

When I click on Add a form from the switchboard, how do I tell it where to
place the cursor. When my form loads, I would like to cursor to be in the
fieldname 'Sign In Date'

Thx


Put VBA code or a macro in the form's Load event to setfocus to the desired
control.
--

John W. Vinson [MVP]
  #4  
Old March 27th, 2010, 12:52 AM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Position Cursor

In the code module behind the form being opened, place this code:

Private Sub Form_Load()
Sign_In_Date.SetFocus
End Sub

BTW, it's a very bad practice to use names that have spaces in them, as it
requires a number of different extras things, depending on what you're doing,
to handle them..

SignInDate

is much better than

Sign In Date

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

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

 




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 06:19 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.