I have data in three tables in a many to many relationship. Right now i am just trying to get a sample database working before i implement it on a larger scale with our current project.
I have people in one table
Colors in another table and a link table between them.
I have a People form with a colors subform.
I have successfully used a multi select list box to build a query that can filter the form based on one color. I can also filter the form based on one color OR another. I can not select two colors and pull all the people who have both colors chosen. In the end i am trying to develop a staff skills and training db. it will require several many to many relationships where staff will be linked to several categories of skills and trainings.
The solution i have been working on uses a separate form with the multi-select list box to build a SQL statment and pass it to the data entry form using the OpenArgs parameter of DoCMD.OpenForm. The data entry form opens, looks to see if there is anything in the openargs and if there is it sets the record source to that passed SQL statement.
I am open to other solutions.
Thanks.
Iz
I know this has been addresses some - like in the following thread:
couln't get this solution to work.
i got hung up on
sFilter = sFilter & "'" & rs.Fields("IDPeople") & "',
I have people in one table
Colors in another table and a link table between them.
I have a People form with a colors subform.
I have successfully used a multi select list box to build a query that can filter the form based on one color. I can also filter the form based on one color OR another. I can not select two colors and pull all the people who have both colors chosen. In the end i am trying to develop a staff skills and training db. it will require several many to many relationships where staff will be linked to several categories of skills and trainings.
The solution i have been working on uses a separate form with the multi-select list box to build a SQL statment and pass it to the data entry form using the OpenArgs parameter of DoCMD.OpenForm. The data entry form opens, looks to see if there is anything in the openargs and if there is it sets the record source to that passed SQL statement.
I am open to other solutions.
Thanks.
Iz
I know this has been addresses some - like in the following thread:
couln't get this solution to work.
i got hung up on
sFilter = sFilter & "'" & rs.Fields("IDPeople") & "',