Hello All,
After much hunting I must come back to the Forum for further direction. I am trying to add a listbox to my form (ACC2000) which will pop up when a particular condition occurs. I have a combobox, cboPCID, that lists cities from tblPostalCodes table. I added a listbox, lstZip, with properties RowSource blank and with Visible set to No. In the Private Sub cboPCID_AfterUpdate() routine I have code to create a SQL SELECT statement and append it to lstZip.RowSource.
This all works fine but once a selection is made in the listbox and focus moves to another control or the record is saved and the form refreshes that listbox is still in view with the old list.
Any hints or direction to clarify this problem will be greatly appreciated.
D
After much hunting I must come back to the Forum for further direction. I am trying to add a listbox to my form (ACC2000) which will pop up when a particular condition occurs. I have a combobox, cboPCID, that lists cities from tblPostalCodes table. I added a listbox, lstZip, with properties RowSource blank and with Visible set to No. In the Private Sub cboPCID_AfterUpdate() routine I have code to create a SQL SELECT statement and append it to lstZip.RowSource.
This all works fine but once a selection is made in the listbox and focus moves to another control or the record is saved and the form refreshes that listbox is still in view with the old list.
Any hints or direction to clarify this problem will be greatly appreciated.
D