I am trying to filter a query based on combo boxes or text boxes from a form. I can't seem to get this to work properly. Sometimes it will work with just a couple things entered into my form but other times it will start showing rows that don't match the criteria. These are what I have going.


This is the code for my query:
Code:
SELECT Tbl_Tournaments.Tournament, Tbl_Tournaments.Round, Tbl_Tournaments.Region1, Tbl_Tournaments.Seed1, Tbl_Tournaments.Rank1, Tbl_Tournaments.Star1, Tbl_Tournaments.Region2, Tbl_Tournaments.Seed2, Tbl_Tournaments.Rank2, Tbl_Tournaments.Star2, Tbl_Tournaments.Winner, Tbl_Tournaments.Loser
FROM Tbl_Tournaments
WHERE (((Tbl_Tournaments.Round) Like [Forms]![Frm_Tournaments Sort]![Round] & "*") AND ((Tbl_Tournaments.Region1) Like [Forms]![Frm_Tournaments Sort]![Region1] & "*") AND ((Tbl_Tournaments.Seed1) Like [Forms]![Frm_Tournaments Sort]![Seed1] & "*") AND ((Tbl_Tournaments.Rank1) Like [Forms]![Frm_Tournaments Sort]![Rank1] & "*") AND ((Tbl_Tournaments.Star1)=([Tbl_Tournaments].[Winner]))) OR (((Tbl_Tournaments.Seed2) Like [Forms]![Frm_Tournaments Sort]![Seed2] & "*") AND ((Tbl_Tournaments.Rank2) Like [Forms]![Frm_Tournaments Sort]![Rank2] & "*") AND ((Tbl_Tournaments.Star2)=([Tbl_Tournaments].[Winner])))
ORDER BY Tbl_Tournaments.Tournament, Tbl_Tournaments.Round, Tbl_Tournaments.Region1;
[/CODE]
When I used & "Null" behind Seed1 & Seed2 that seems to be working better for the seed criteria but I still have issues with nothing showing up if I don't enter a seed in my form. With the & "*" behind the seed I do get all the records to show up like it should when I have no criteria entered into my form. I thought I used Like....& is null into a different form and that one I believe works but now when I go in there the coding looks a lot different like access automically changed it. If anybody can help me with this I would really appreciate it.