Hi everyone, as some of you may know I've been working on a search criteria that filters a listbox based on what the user types into the search bar or using a date range criteria. While I finally got the date range to work (thanks to you guys
) now the search bar won't filter the list box as the user begins typing as it previously was. There is a button where users can add in new info (e.g. a new company, their address, insurance info, etc) and even though it updates on the company table, nothing shows up on the list box. Do list boxes have a limit of rows they display? Here's the following SQL row source for the list box and I suspect the problem is here, particularly in the WHERE clause.
AAEndDate and ISExpiry are the two date columns in the list box. If you guys wouldn't mind having a look at this and maybe highlight any potential errors, that would be much appreciated!

Code:
[B]SELECT[/B] tblCompany.CompanyName, tblAssociation.Associate, tblCompany.AAEndDate, tblCompany.ISExpiry, tblCompany.ISDeclaration, tblCompany.Address, tblCompany.City, tblCompany.Province, tblCompany.PostalCode, tblCompany.ContactName, tblCompany.ContactEmail, tblCompany.ContactPhoneNumber, tblPrograms.Program
[B]FROM [/B]tblPrograms INNER JOIN (tblAssociation INNER JOIN tblCompany ON tblAssociation.ID = tblCompany.[Associate(s)].Value) ON tblPrograms.ID = tblCompany.Programs.Value
[B]WHERE [/B](((tblCompany.AAEndDate) Between Forms!frmMain!txtFrom And Forms!frmMain!txtTo) OR ((tblCompany.ISExpiry) Between forms!frmMain!txtFrom And forms!frmMain!txtTo) And ((tblCompany.CompanyName & tblAssociation.Associate & tblCompany.AAEndDate & tblCompany.ISExpiry) Like "*" & forms!frmMain!SrchTxt & "*"))
[B]ORDER BY [/B]tblCompany.CompanyName;
AAEndDate and ISExpiry are the two date columns in the list box. If you guys wouldn't mind having a look at this and maybe highlight any potential errors, that would be much appreciated!
Last edited: