REPOST : HELP Tab Order - (Rick B.)

  • Thread starter Thread starter ym
  • Start date Start date
Y

ym

Hi Rick Brandt,
What I meant is you could try...
DoCmd.OpenForm "Adverse Reaction Report"
Forms![Adverse Reaction Report]!txtRCTrackingNumber.TabIndex = 5
Forms![Adverse Reaction Report]!txtSourceNumber.TabIndex = 4
Forms![Adverse Reaction Report]!cboSourceName.TabIndex = 3
Forms![Adverse Reaction Report]!cboSourceType.TabIndex = 2
Forms![Adverse Reaction Report]!txtDate.TabIndex = 1
Forms![Adverse Reaction Report]!trackingnumber.TabIndex = 0
I don't know if that will make any difference, but often the reshuffling
caused by changing an ordinal setting causes problems unless you traverse
them backwards.

I tried this and it did not work - tabbing continues to take its own course
instead of jumping to the next tabindex. I also tried setting the tabindex
in the Form_load event. I tried working on a sample form with a bunch of
textboxes and combos - reshuffle them somewhat and then did the tabindex
thing on the form_load event - tried various tabindex order of controls and
it all works fine.

Can it be possible my form is corrupted ?
 
ym said:
Hi Rick Brandt,
What I meant is you could try...
DoCmd.OpenForm "Adverse Reaction Report"
Forms![Adverse Reaction Report]!txtRCTrackingNumber.TabIndex = 5
Forms![Adverse Reaction Report]!txtSourceNumber.TabIndex = 4
Forms![Adverse Reaction Report]!cboSourceName.TabIndex = 3
Forms![Adverse Reaction Report]!cboSourceType.TabIndex = 2
Forms![Adverse Reaction Report]!txtDate.TabIndex = 1
Forms![Adverse Reaction Report]!trackingnumber.TabIndex = 0
I don't know if that will make any difference, but often the reshuffling
caused by changing an ordinal setting causes problems unless you traverse
them backwards.

I tried this and it did not work - tabbing continues to take its own course
instead of jumping to the next tabindex. I also tried setting the tabindex
in the Form_load event. I tried working on a sample form with a bunch of
textboxes and combos - reshuffle them somewhat and then did the tabindex
thing on the form_load event - tried various tabindex order of controls and
it all works fine.

You tried this in the load event of the form in question? That's what I
did and it worked fine. This might be a setting that cannot be changed
from another module unless the form is opened in design view.
 
Hi Rick,

Sorry, I did not check this site earlier ....

Next thing I will try is to create a new mdb and then import all objects
over and then see what happens...

ym


Rick Brandt said:
ym said:
Hi Rick Brandt,
What I meant is you could try...
DoCmd.OpenForm "Adverse Reaction Report"
Forms![Adverse Reaction Report]!txtRCTrackingNumber.TabIndex = 5
Forms![Adverse Reaction Report]!txtSourceNumber.TabIndex = 4
Forms![Adverse Reaction Report]!cboSourceName.TabIndex = 3
Forms![Adverse Reaction Report]!cboSourceType.TabIndex = 2
Forms![Adverse Reaction Report]!txtDate.TabIndex = 1
Forms![Adverse Reaction Report]!trackingnumber.TabIndex = 0
I don't know if that will make any difference, but often the reshuffling
caused by changing an ordinal setting causes problems unless you traverse
them backwards.

I tried this and it did not work - tabbing continues to take its own course
instead of jumping to the next tabindex. I also tried setting the tabindex
in the Form_load event. I tried working on a sample form with a bunch of
textboxes and combos - reshuffle them somewhat and then did the tabindex
thing on the form_load event - tried various tabindex order of controls and
it all works fine.

You tried this in the load event of the form in question? That's what I
did and it worked fine. This might be a setting that cannot be changed
from another module unless the form is opened in design view.
 
Back
Top