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  

Cursor start point



 
 
Thread Tools Display Modes
  #1  
Old October 12th, 2006, 08:12 PM posted to microsoft.public.access.forms
NetworkTrade
external usenet poster
 
Posts: 825
Default Cursor start point

Hi, I know how to do the Tab Control feature. But I have a Form that has
the Combobox in the Header.

In Tab Control the tabs are segregated. i.e. Tabs within Header, Tabs
within Details, Tabs within Footer,

It appears that one can only control the order of the Tab within its
category. In my case the form is opening so that the cursor is in the first
control of the Details section of the Form.....and I would like the cursor to
begin at the first control of the Headers section....but I see no way to
change/control this using the Tab Control feature.

Would welcome advice...thanx
Would
--
NTC
  #2  
Old October 13th, 2006, 03:11 AM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default Cursor start point

"NetworkTrade" wrote in
message
Hi, I know how to do the Tab Control feature. But I have a Form
that has the Combobox in the Header.

In Tab Control the tabs are segregated. i.e. Tabs within Header,
Tabs within Details, Tabs within Footer,

It appears that one can only control the order of the Tab within its
category. In my case the form is opening so that the cursor is in
the first control of the Details section of the Form.....and I would
like the cursor to begin at the first control of the Headers
section....but I see no way to change/control this using the Tab
Control feature.

Would welcome advice...thanx


Each section of the form has its own tab order, and each page of a tab
control has *its* own tab order. Normally a form will open with the
focus in the first control in the Detail section's tab order. IIRC, If
that control is a tab control, then it will be in the first control in
the first page's tab index. I'm not sure that you aren't confusing "Tab
Control" with "Tab Index", but it doesn't really matter as far as the
solution to your problem is concerned.

If you want to force the focus to be in a control in the form's Header
section when the form first opens, I think you'll have to put some code
in the form's Open or Load event to send it there. So if you want the
control to be in, say, the combo box named "cboSearch", you'd have an
event procedure like this:

'----- start of example code -----
Private Sub Form_Open(Cancel As Integer)

Me!cboSearch.SetFocus

End Sub
'----- end of code -----


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 




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:44 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.