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  

SetFocus Question...



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2004, 01:34 PM
JustMe
external usenet poster
 
Posts: n/a
Default SetFocus Question...

Hi All

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 form it First lets me enter the data
in the header part of the form?
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, 02:53 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default SetFocus Question...

It sounds like you should be able to use the OnOpen event of the form, and
add code something like:

Me!txtYourHeaderTextBox.SetFocus

--
Good luck

Jeff Boyce
Access MVP

 




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 07:58 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.