Hi everyone,
First a brief description of my form: I have a subform within a main form. In my subform, I have a listbox displaying address information by firm name. A user first has to select a firm name in a combo box above the list box. The listbox and the combo box join on firm name. The listbox records what address was selected in the address table by the way of an address id number. I set up a macro to requery the listbox when you select a new firm name in the combo box. The code for the requery is as follows:
Private Sub firm_name_AfterUpdate()
Forms!Contract!Contract_Subs.Form!List25.Requery
End Sub
My problem is that when the user moves to a new record in the subform, the address information does not refresh; you have to click on the new firm name before the address information will update itself. I am worried that this in one more thing a data entry person will have to worry about.
I am wondering if there is a code that would requery my listbox whenever you move to a new record in my subform, essentially an "On Record Navigation" requery option. I have tried nearly all the macro requery possibilities with no luck. Ideally, a user would be able to go back to previous records and see what address he or she had selected, however I would be happy even if it just requeried to blank.
Any suggestions? Thank you for your help,
Marko