superchrisdub
New member
- Local time
- Today, 02:09
- Joined
- Mar 29, 2018
- Messages
- 9
Hi,
I have a form within which there is a subform. The recordsource for the subform is a table with a Selected (Yes/No) column. So if you want a record to be included in the processing then you just put a tick in the Selected column. What I want is, if a user applies a filter to the subform, then all filtered records get a tick put in the Selected column automatically. Currently I have a button in the main form which puts a tick in the Selected column, which is not very convenient or professional-looking, and requires the user to remember to do it. I tried putting some code in the ApplyFilter event but that seems to fire before the filter has been applied, so it ended up putting a tick in the Selected column of every record. Is there some way of putting the ticks in the Selected column automatically after the filter has been applied. I'm sure there is an easy way to do it, which I have missed as I am not an experienced Access developer, although I am very familiar with Excel VBA.
Any help would be greatly appreciated.
Thanks,
Chris
I have a form within which there is a subform. The recordsource for the subform is a table with a Selected (Yes/No) column. So if you want a record to be included in the processing then you just put a tick in the Selected column. What I want is, if a user applies a filter to the subform, then all filtered records get a tick put in the Selected column automatically. Currently I have a button in the main form which puts a tick in the Selected column, which is not very convenient or professional-looking, and requires the user to remember to do it. I tried putting some code in the ApplyFilter event but that seems to fire before the filter has been applied, so it ended up putting a tick in the Selected column of every record. Is there some way of putting the ticks in the Selected column automatically after the filter has been applied. I'm sure there is an easy way to do it, which I have missed as I am not an experienced Access developer, although I am very familiar with Excel VBA.
Any help would be greatly appreciated.
Thanks,
Chris