R
raymondskelton
How do I tab from a control on page 1 to a control on page 2 on a
TabControl? I have tried to set the TabIndexes manually on form load
but I get an error. See the following
Code:
Private Sub Form_Load()
Me!txtMake.TabIndex = 0
Me!txtModel.TabIndex = 1
Me!txtSerialNumber.TabIndex = 2
Me!txtExpressServiceCode.TabIndex = 3
Me!txtPurchaseDate.TabIndex = 4
Me!chkProduction.TabIndex = 5
Me!cmbPDLocationID.TabIndex = 6
Me!txtFunction.TabIndex = 7
Me!cmbCPUCount.TabIndex = 8 'Page one
Me!txtCPUSpeed.TabIndex = 9
Me!txtCPUType.TabIndex = 10
Me!txtRAMAmount.TabIndex = 11
Me!subArrays.TabIndex = 12
Me!txtOSInstalled.TabIndex = 13 'Page Two
Me!subInstalledSoftware.TabIndex = 14
Me!txtDNSName2.TabIndex = 15 'Page Three
Me!txtPrimaryIP.TabIndex = 16
Me!chkPDStatus.TabIndex = -1
End Sub
Error Message:
Run-time error '2184':
The value you used for the TabIndex propertiy isn't valid. The correct
valuses are from 0 through 4.
I have also tried to use DoCmd.GoToControl() Method on Exit event. It
worked, but I don't like the behavior when using a mouse.
Any help will be greatly appreciated.
Sincerely,
Raymond
TabControl? I have tried to set the TabIndexes manually on form load
but I get an error. See the following
Code:
Private Sub Form_Load()
Me!txtMake.TabIndex = 0
Me!txtModel.TabIndex = 1
Me!txtSerialNumber.TabIndex = 2
Me!txtExpressServiceCode.TabIndex = 3
Me!txtPurchaseDate.TabIndex = 4
Me!chkProduction.TabIndex = 5
Me!cmbPDLocationID.TabIndex = 6
Me!txtFunction.TabIndex = 7
Me!cmbCPUCount.TabIndex = 8 'Page one
Me!txtCPUSpeed.TabIndex = 9
Me!txtCPUType.TabIndex = 10
Me!txtRAMAmount.TabIndex = 11
Me!subArrays.TabIndex = 12
Me!txtOSInstalled.TabIndex = 13 'Page Two
Me!subInstalledSoftware.TabIndex = 14
Me!txtDNSName2.TabIndex = 15 'Page Three
Me!txtPrimaryIP.TabIndex = 16
Me!chkPDStatus.TabIndex = -1
End Sub
Error Message:
Run-time error '2184':
The value you used for the TabIndex propertiy isn't valid. The correct
valuses are from 0 through 4.
I have also tried to use DoCmd.GoToControl() Method on Exit event. It
worked, but I don't like the behavior when using a mouse.
Any help will be greatly appreciated.
Sincerely,
Raymond