Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Items to List Box Problem

Status
Not open for further replies.

DreamerZ

Programmer
Jul 11, 2001
254
US
I have a user form in Excel with a list box that I fill with data based on visible rows on a sheet. This form is opened based on data from another form. I have to do it this way because it's possible there will be multiple rows found from the data entered in the first form.

So, in form 1 data is entered. The sheet is searched. If data is not found, it's added to the sheet from form 1. If data is found, form 2 opens showing all found data using the list box. The data can either be added as new or an existing row can be updated with the new data.

My problem: if data is not found the second form is not displayed. If the next entry is then found, the list box on the second form shows all rows instead of just the ones with equal data (it's a date and name found).

Any reason why this happens? I'm filtering rows based on data from the first form (filtering sheet for name and then for date). The list box is supposed to fill with just visible rows then.

Thoughts? Thx,


DreamerZ
simplesolutions@prodigy.net
[ignore][/ignore]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top