473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Focus



I have created a form in Access 2003 which I use to add, delete, change,
etc. records in a table. The form consists of a few textboxes (first name,
last name, etc. ). In addition, I have placed some buttons on the form (add
record, delete, etc. ) When I click the add record button, I would like for
the focus to be in a particular textbox (first name); howver, for the life
of me, I cannot figure out how to code for this to happen. I took an access
class a few years back and looked throughout my book, but I don't remember
the course covering details such as the GotFocus event. Please help.
Thanks so much,

Alex
Dec 28 '06 #1
1 1155
On Wed, 27 Dec 2006 22:30:48 -0500, "A. Stern" <as****@yahoo.com>
wrote:

Bring the form in design view. Select the button. Select properties,
and select the Click event. It will say "event procedure", and click
the ... button to the right. The code window will open.
Towards the bottom of the code, write:
<somecontrol>.SetFocus
(where <somecontrolis the name of the control you want to set focus
to)

-Tom.

>

I have created a form in Access 2003 which I use to add, delete, change,
etc. records in a table. The form consists of a few textboxes (first name,
last name, etc. ). In addition, I have placed some buttons on the form (add
record, delete, etc. ) When I click the add record button, I would like for
the focus to be in a particular textbox (first name); howver, for the life
of me, I cannot figure out how to code for this to happen. I took an access
class a few years back and looked throughout my book, but I don't remember
the course covering details such as the GotFocus event. Please help.
Thanks so much,

Alex
Dec 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nitin | last post by:
Hi I have created function to check date and time. at the time of execution, if date is left empty the function returns the error message but then the focus goes to next field. Next filed is for...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
1
by: avnrao | last post by:
Hi, I am facing a problem with control.focus (javascript). Here is the description of the issue. 1. I have 2 aspx files. on Aspx1 I have button named NewRow. Clicking on this, will redirect...
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
4
by: Roger | last post by:
Hi, I am confused about the differences between this.window.focus(), window.focus(), and this.focus(). I want to use the calls in a <body onload="..."tag. What are the differences between...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.