Connecting Tech Pros Worldwide Help | Site Map

dumbest 2003 question of all time

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2006, 02:05 PM
sparks
Guest
 
Posts: n/a
Default dumbest 2003 question of all time

I spent a lot of time in access 97 simply because that is the way we
have always done it.
So when we changed over to 2003 (last week LOL) I ran into a lot of
new things.

but this one I am not too sure about.
when you have multi tabs on a tabctl and you are go to a visible tab,
in this case there are 3 tied to 3 forms that are tied to the same
table.

main table is eligibility......idnum
secondary table that the 3 forms are tied to is changes....with a
field called link so that it can use idnum to link in a 1 to 1
relationship.

What is the best way when you reach the bottom of page1 to setfocus to
the top of page2.

the reason I ask is I have always done this on a hidden field.

==============================
Public Function NextPage(tabctl As TabControl, min As Integer, max As
Integer)
If max = 0 Then max = tabctl.Pages.count - 1
Dim counter As Integer
counter = 0
Do
counter = counter + 1
If (tabctl.Value + counter) (max) Then
counter = min - tabctl.Value
End If
Loop Until (tabctl.Pages(tabctl.Value + counter).Visible)
tabctl.Pages(tabctl.Value + counter).SetFocus
End Function
===============================

my way of thinking (that is probably wrong) is that if you are sitting
on the last field on the form and hit shift tab or something then if
you don't go to this hidden field you won't be taken to the next page
when you didn't want to go...since some of the data people use mouse,
keyboard and whatnot to do things on the form.

so I the last field if you hit tab, you would hit the hidden field and
go to the next page..
I know that I could do something like SendKeys ("^{TAB}") on the last
field but again only a mouse would allow it.

what is the best way to do this, cycle thru the 3 "visible" forms.

thank you for your ideas


Jerry




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.