Command button - setting focus

Robert C

Registered User.
Local time
Today, 11:27
Joined
Mar 27, 2000
Messages
88
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.
 
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).]
 

Users who are viewing this thread

Back
Top Bottom