I have a form where I want to populate a list box (named region) from a table (named opportunities)
I have not problem doing this by adding the following to the on open event of the form:
Me.Region.RowSource = "SELECT DISTINCT [Opportunity Region] FROM Opportunities;"
However, I would like to filter out a few of the selections. I tried adding this:
Me.Region.RowSource = "SELECT DISTINCT [Opportunity Region] FROM Opportunities where [opportunity region] not in ('NJ - HHIA', 'Other than NJ HHIA');"
However, I get no results at all - I have tried several different variations with no luck - any help would be greatly appreciated!! thanks!!!
Fred
I have not problem doing this by adding the following to the on open event of the form:
Me.Region.RowSource = "SELECT DISTINCT [Opportunity Region] FROM Opportunities;"
However, I would like to filter out a few of the selections. I tried adding this:
Me.Region.RowSource = "SELECT DISTINCT [Opportunity Region] FROM Opportunities where [opportunity region] not in ('NJ - HHIA', 'Other than NJ HHIA');"
However, I get no results at all - I have tried several different variations with no luck - any help would be greatly appreciated!! thanks!!!
Fred