Discussion Locked

Access '97-Problem with Listbox

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm having trouble with a form I've made to display employee attendance history. The top of the form displays the most recent occurence a particular individual has had. The bottom of the form contains a listbox which shows all of the occurences forthis individual. I'm trying to create a combo box that will enable me to choose a different employee name and look at their record, but here's what is happening: After choosing a name from the combo box, the top of the form displays the info I want, but the listbox remains static. How can I get the listbox info to change, too? I am new to VBA coding and cannot figure out how to fix this. Thanks in advance for any help you can provide.

3 replies

by geoffreyc

I believe you will want to make use of the Requery method of the listbox, after making any changes to the rest of the form. If the listbox is linked to the form you should just have to call :

ListBox1.Requery

This discussion is closed to new replies.