List Box

jonp

Registered User.
Local time
Today, 20:52
Joined
Sep 27, 2000
Messages
42
Hello everyone! :D

Is it possible to have a query based list box default to the first selection? I need the first item to be selected so that an unbound field would be populated once the form is opened.

Any help would be greatly appreciated.

Thanks,

JONP
 
Hi JONP

Paste this code into your On_Load section of the form of which your control is on.

Code:
MyControl.Value = MyControl.ItemData(0)

This will set the value of MyControl to it's first row.

Cheers
 

Users who are viewing this thread

Back
Top Bottom