>What is the code that I use to set focus onto the tab order #1 item on a form? In otherwords I have an add button (class) that when the user clicks on it then the set focus is on the (whatever control it might be) tab order #1.
Jaime's code should work fine, but remember that some controls (ie - ole controls) may not have a tab index, so make sure you test before calling on the tabindex property.
For instance:
If Pemstatus(lCurControl,"TabIndex",5)
...
...
Endif
Alan