Dear all,
Hopefully this won't be too difficult to sort out. I think it is probably a common scenario. I have already searched the web, but each answer I've found doesn't quite tell me enough to fully 'get it'.
Regarding my 'level', although I don't write my own SQL if I can avoid it, I do review SQL sometimes to check what's going on. Access has been a steep learning curve, but my understanding of queries and relationships improved a lot recently.
Some of the finer points of forms are just giving me frustration. My form related knowledge probably lags behind my data/table/relationship/query related knowledge. Its probably simple, but as you know these things are not too intuitive at first.
I have a query which (built on another query and some tables in turn) delivers exactly the data I want. I want that data to come up in my form (or datasheet subform actually) BUT, I want to be able to filter for PERSON.ID. I want the user to be able to use a combo-box to do that filtering.
OK then, main form, with unbound combo-box at the top. I assume it should be unbound because I don't want any data edited based on selections which are supposed to cause temporary filtering only (correct me if I'm wrong). For the Row Source I've used a qryWholeName. This query creates a WholeName for each person, and includes their PERSON.ID as well.
Maybe I should use the code mentioned in this thread:
http://www.dbforums.com/microsoft-access/1638168-filter-subform-main-form-combobox.html
but I am not a member of that forum, so I cannot see the example DB they have attached in the thread. I get hints of how it would work, but maybe someone with more experience can tell me exactly what you would do to implement this type of solution. I have dabbled in very simple AfterUpdate events before, but I am as yet rather weak in this type of area and keen to get better.
Finally, my database is likely to be accessed by several people at once. Different users will want to be selecting and filtering for different people simultaneously. I hope this will not present a problem?
Hopefully this won't be too difficult to sort out. I think it is probably a common scenario. I have already searched the web, but each answer I've found doesn't quite tell me enough to fully 'get it'.
Regarding my 'level', although I don't write my own SQL if I can avoid it, I do review SQL sometimes to check what's going on. Access has been a steep learning curve, but my understanding of queries and relationships improved a lot recently.
Some of the finer points of forms are just giving me frustration. My form related knowledge probably lags behind my data/table/relationship/query related knowledge. Its probably simple, but as you know these things are not too intuitive at first.
I have a query which (built on another query and some tables in turn) delivers exactly the data I want. I want that data to come up in my form (or datasheet subform actually) BUT, I want to be able to filter for PERSON.ID. I want the user to be able to use a combo-box to do that filtering.
OK then, main form, with unbound combo-box at the top. I assume it should be unbound because I don't want any data edited based on selections which are supposed to cause temporary filtering only (correct me if I'm wrong). For the Row Source I've used a qryWholeName. This query creates a WholeName for each person, and includes their PERSON.ID as well.
Maybe I should use the code mentioned in this thread:
http://www.dbforums.com/microsoft-access/1638168-filter-subform-main-form-combobox.html
but I am not a member of that forum, so I cannot see the example DB they have attached in the thread. I get hints of how it would work, but maybe someone with more experience can tell me exactly what you would do to implement this type of solution. I have dabbled in very simple AfterUpdate events before, but I am as yet rather weak in this type of area and keen to get better.
Finally, my database is likely to be accessed by several people at once. Different users will want to be selecting and filtering for different people simultaneously. I hope this will not present a problem?