I'm nearly done with a database but there is one more thing I would like to add.
I would like to add add a combo box, let's say I call it [cboYear], to my form [frmRevisionAudi t], where the contents of the combo box are populated with the current year 2010, but also includes, say 5 years prior, and 5 years into the future. And when the current year becomes 2011, I would like it to auto calculated based on that, etc... (I know this will probably have to be done via VBA, but I'm still young to VBA so I just can't get my head around it yet).
Once this combo is in place, when I select the year I want, I would like it to filter my subform [frmRevisionAudi tSubform] date down to only the year selected. It would also be nice if there was a blank or "All" option to select, that would simply show everything. The date field on my subform is simply called [Date]. The date field is of course in a 1/1/10 format, so that is also why I'm having trouble seeing how to select, say 2010 from a dropdown, and have it only pull the year part out of the date field to filter from.
I have a bunch of other filters on my main form filtering my subform via a query [qryRevisionAudi t].
I hope I've included everything I needed to mention. I really appreciate any help at all.
I would like to add add a combo box, let's say I call it [cboYear], to my form [frmRevisionAudi t], where the contents of the combo box are populated with the current year 2010, but also includes, say 5 years prior, and 5 years into the future. And when the current year becomes 2011, I would like it to auto calculated based on that, etc... (I know this will probably have to be done via VBA, but I'm still young to VBA so I just can't get my head around it yet).
Once this combo is in place, when I select the year I want, I would like it to filter my subform [frmRevisionAudi tSubform] date down to only the year selected. It would also be nice if there was a blank or "All" option to select, that would simply show everything. The date field on my subform is simply called [Date]. The date field is of course in a 1/1/10 format, so that is also why I'm having trouble seeing how to select, say 2010 from a dropdown, and have it only pull the year part out of the date field to filter from.
I have a bunch of other filters on my main form filtering my subform via a query [qryRevisionAudi t].
I hope I've included everything I needed to mention. I really appreciate any help at all.
Comment