List Box (1 Viewer)

jonp

Registered User.
Local time
Today, 01: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
 

Emohawk

What a wicked mullet...
Local time
Today, 01:52
Joined
Mar 14, 2002
Messages
79
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

Top Bottom