Tabbed Form Default View

denileigh

Registered User.
Local time
Today, 05:35
Joined
Dec 9, 2003
Messages
212
I have an employee timecard form with a tabbed control.

One tab is the daily hours and the other is for entering expenses.

When I click NEW (add record), I want it to default back to the 1st tab (Hours).

I'm sure I need to add something to the onclick event but I'm not sure what because of course right now the onclick has new record codes in it and I need to add the form view or something.

Can anyone help? THX!
 
try this...

1. all you want to do is the focus to tab1 (lets say it's call tab1, but find out the real name of your tab, right click, properties, other, name)

Forms!frmMain!Tab1.SetFocus

Put the above code with your form name (frmMain) and your tab name (tab1) in the NEW Button (on the click event).

Good Luck.

Dianna Goldsberg
 
Worked like a charm! THANKS A BUNCH!
 

Users who are viewing this thread

Back
Top Bottom