L
Lodewijk
On my form i have a combo box cboReference. The first four digets show the
year in which the record is made, and the last three are just the number in
that year.
When you select a record through cboReference, the contents of that record
are shown on the form.
With a button cmdFilter, a form is open to choose which records are filtered
by year. When I close that form the following is performed, where sFltr can
be "(Year(txtDate)=2004)", and f = forms!frmMyForm
If Len(sFltr) = 0 Then
f.FilterOn = False
Else
f.Filter = sFltr
f.FilterOn = True
End If
But that does not change the combo box. I can still choose all records.
How can I also change the combo box that it only shows records from 2004?
year in which the record is made, and the last three are just the number in
that year.
When you select a record through cboReference, the contents of that record
are shown on the form.
With a button cmdFilter, a form is open to choose which records are filtered
by year. When I close that form the following is performed, where sFltr can
be "(Year(txtDate)=2004)", and f = forms!frmMyForm
If Len(sFltr) = 0 Then
f.FilterOn = False
Else
f.Filter = sFltr
f.FilterOn = True
End If
But that does not change the combo box. I can still choose all records.
How can I also change the combo box that it only shows records from 2004?