Syntax

A

an

Hi!

I would like to know what syntax in AfterUpdate to jump of the:

TabCtl(2).Page(0).LastField to first field in
TabCtl(2).Page(1).1stField.SetFocus

Thanks in advance.
an
 
G

George Nicholson

All controls on a TabControl are members of the main form's Control
collection.

assuming TabCtl2 is the name of the tab control:
Me.TabCtl2 = 1 'Changes the active tab to the tab having 1 as it's
PageIndex value
Me.1stField.SetFocus


HTH,
 
A

an

Thanks for reply.

The name of my TabCtl is TabCtl2 but return:
"Method or data member not found"

an
 
A

an

GN,

Now, after Compact and Repair, return:
"...can´t find the field 'TabCtl2'..."

In adition: Access 2007

Thanks.
an
 
Top