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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Trying to SetFocus to right field in form



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2004, 05:37 PM
JustMe
external usenet poster
 
Posts: n/a
Default Trying to SetFocus to right field in form

Hi All.. And PLEASE don't say it...I know it's posted elsewhere...
Some people MIGHT look at one newsgroup and not others and will have the
answer...Sorry

Here is my orig Question, and it was responded to by Jeff but what was given
did nothing but get me a Macro Error message.
Mabey someone els knows.. I have searched the MS Knowledge Base but found
nothing that helps there.

I have a form called MainFrom. When I open this form it has a subForm that I
use to lookup Customers. My problem is when I open this Main form it's focus
is to the center or the Detail section of the form. I need to First fill
some data in the Header section.
How do I set focus that when I open The Main form it First lets me enter the
data
in the header part of the form? I can click the mouse in the first field and
that works but I shouldn't have to do that....I don't think.

I have looked at the Tab settings and it does not let me do anything but
change tab order of the fields, Not Sections.
Any Ideas?

Thanks


  #2  
Old May 9th, 2004, 05:51 PM
PC Datasheet
external usenet poster
 
Posts: n/a
Default Trying to SetFocus to right field in form

Put the following code in the Open event of your form:

Me!NameOfFieldInHeader.SetFocus

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications

www.pcdatasheet.com


"JustMe" wrote in message
. ..
Hi All.. And PLEASE don't say it...I know it's posted elsewhere...
Some people MIGHT look at one newsgroup and not others and will have the
answer...Sorry

Here is my orig Question, and it was responded to by Jeff but what was given
did nothing but get me a Macro Error message.
Mabey someone els knows.. I have searched the MS Knowledge Base but found
nothing that helps there.

I have a form called MainFrom. When I open this form it has a subForm that I
use to lookup Customers. My problem is when I open this Main form it's focus
is to the center or the Detail section of the form. I need to First fill
some data in the Header section.
How do I set focus that when I open The Main form it First lets me enter the
data
in the header part of the form? I can click the mouse in the first field and
that works but I shouldn't have to do that....I don't think.

I have looked at the Tab settings and it does not let me do anything but
change tab order of the fields, Not Sections.
Any Ideas?

Thanks




  #3  
Old May 9th, 2004, 06:06 PM
JustMe
external usenet poster
 
Posts: n/a
Default Trying to SetFocus to right field in form

I wish to Thank You Very much...
It worked...

"PC Datasheet" wrote in message
ink.net...
Put the following code in the Open event of your form:

Me!NameOfFieldInHeader.SetFocus

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications

www.pcdatasheet.com


"JustMe" wrote in message
. ..
Hi All.. And PLEASE don't say it...I know it's posted elsewhere...
Some people MIGHT look at one newsgroup and not others and will have the
answer...Sorry

Here is my orig Question, and it was responded to by Jeff but what was

given
did nothing but get me a Macro Error message.
Mabey someone els knows.. I have searched the MS Knowledge Base but

found
nothing that helps there.

I have a form called MainFrom. When I open this form it has a subForm

that I
use to lookup Customers. My problem is when I open this Main form it's

focus
is to the center or the Detail section of the form. I need to First fill
some data in the Header section.
How do I set focus that when I open The Main form it First lets me enter

the
data
in the header part of the form? I can click the mouse in the first field

and
that works but I shouldn't have to do that....I don't think.

I have looked at the Tab settings and it does not let me do anything but
change tab order of the fields, Not Sections.
Any Ideas?

Thanks






 




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 08:46 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.