andrewsmith
Registered User.
- Local time
- Today, 23:06
- Joined
- Oct 19, 2011
- Messages
- 15
Hello,
I have an access 2010 db with several forms with multiple subforms. The subforms are based on the same query and are filtered by one of the fields to show subsets of this query data. Basically the query holds 4 fields, a Parent Record ID, attribute ID, attribute type and attribute description.
The main form holds the parent record and the sub forms are linked using this and then filtered to show attributes of one type per sub form.
The issue is that when I open the main form from a button on another form with the record filtered the sub forms don't apply their filters properly. The button was generated automatically by access and the macro has the following where condition on the openform action
="[ClientContact_ID]=" & [ClientContact_ID]
Attached are three screen grabs in a zip as I am not permitted to upload images. The first shows some example query results, the next the filters on the subforms working correctly and the final incorrectly. The subforms both show the same record on the same form but the correct one is opened directly and the incorrect from a button on another form.
Its leaving a placeholder for the 'filtered' records, I assume its empty as the combobox source doesn't match.
This happens on several forms I have created with similar subforms.
Any help greatly appreciated.
Andrew
I have an access 2010 db with several forms with multiple subforms. The subforms are based on the same query and are filtered by one of the fields to show subsets of this query data. Basically the query holds 4 fields, a Parent Record ID, attribute ID, attribute type and attribute description.
The main form holds the parent record and the sub forms are linked using this and then filtered to show attributes of one type per sub form.
The issue is that when I open the main form from a button on another form with the record filtered the sub forms don't apply their filters properly. The button was generated automatically by access and the macro has the following where condition on the openform action
="[ClientContact_ID]=" & [ClientContact_ID]
Attached are three screen grabs in a zip as I am not permitted to upload images. The first shows some example query results, the next the filters on the subforms working correctly and the final incorrectly. The subforms both show the same record on the same form but the correct one is opened directly and the incorrect from a button on another form.
Its leaving a placeholder for the 'filtered' records, I assume its empty as the combobox source doesn't match.
This happens on several forms I have created with similar subforms.
Any help greatly appreciated.
Andrew