View Full Version : Command button - setting focus


Robert C
04-15-2000, 02:58 AM
Following on from my question yesterday, what I actually need to happen is for the SupplierName field to receive the focus when the Find Supplier command button is clicked.

I set up the comand button using the relevant wizard.

Thanks in advance for your help.

R. Hicks
04-15-2000, 06:30 AM
You need to add one line of code to the On Click event of the Find Supplier command button.

SupplierName.SetFocus

If you have problems getting this to work, post the code for the On Click event of your button, and I can tell you exactly where in this code it should be placed.

HTH
RDH



[This message has been edited by R. Hicks (edited 04-15-2000).]