Hi Hector
Not sure I should be helping anyone with NTWS, but here is what I would try. <g>
Set a counter either in the session queue, or in a login file that keeps track of attempted logins.
Have 2 tabs on the form that has a "Tab Condition" eg.
VALID tab - p_web.GSV('login_counter') < 3
INVALID tab - p_web.GSV('login_counter') => 3
and set the condition according to the situation, and the correct tab will show.
Ideally this should be handled in your tps file that keeps track of the username, or the user will simply start a new session and retry.
Johan