I am writing a basic database program and I find myself stuck on something fairly simple. I can't figure out how to change which item in my listbox is selected through code. During runtime, the user can simply click the last item in the listbox, but I need to select that last item during design time. Here is an explanation of what i am trying to do. The listbox currently is filled by an access database file. I want to add a new row to this table. As of now, because the first item in the listbox is selected when I run the program, the new row is getting inserted in between the first and third rows instead of adding it after the last row. I'm sure there is a better way to go about adding rows than I have come up with so any other suggestion are appreciated.
Thanks to all,
Matt
Thanks to all,
Matt