I have a form with a list box. The list box is the only editable item on the form. When an item is selected it opens a modal form to edit the record. The problem is that when the form with the list box first opens, the list box has the focus but you have to hit the down key or click on one of the entries to get it to select any of the entries, so if the enter key is pressed to edit the record when the form is first opened it creates a new unwanted record. I need to have the list box select the first entry in the list when the form is first opened. I have tried using the sendkeys command to send the down arrow OnLoad, and OnGotFocus for both the form and the control but this did not work. Any Ideas? Thanks.
Brent
Brent