C
CES
All,
I have a subform embedded as a Continuous Form. Within the subform I have a combo box that I would like to set the RowSource based on a checkbox true\false value. The default value of the checkbox is true. If the checkbox value is true I want to filter the available items in the combo box based on a value that I have in my main form. The following works correctly for the current record.
If Me.FilterCategory1.Value = True Then
x = Me.Parent.Category.Value
strSQL = "SELECT ...;"
Else
strSQL = "SELECT ...;"
End If
Me.SubCategory1.RowSource = strSQL
The problem I'm running into is that when I apply the RowSource filter it effects every record in a continuous form. So that if I apply the filter on Record 1 and one of the combo box's values is outside of the filter on any of the other records in the continuous form, it will show as an empty combo box even though it does have a value.
Is there a way of only effecting the current record that I am on. Any help on this would be greatly appreciated. Thanks in advance. - CES
I have a subform embedded as a Continuous Form. Within the subform I have a combo box that I would like to set the RowSource based on a checkbox true\false value. The default value of the checkbox is true. If the checkbox value is true I want to filter the available items in the combo box based on a value that I have in my main form. The following works correctly for the current record.
If Me.FilterCategory1.Value = True Then
x = Me.Parent.Category.Value
strSQL = "SELECT ...;"
Else
strSQL = "SELECT ...;"
End If
Me.SubCategory1.RowSource = strSQL
The problem I'm running into is that when I apply the RowSource filter it effects every record in a continuous form. So that if I apply the filter on Record 1 and one of the combo box's values is outside of the filter on any of the other records in the continuous form, it will show as an empty combo box even though it does have a value.
Is there a way of only effecting the current record that I am on. Any help on this would be greatly appreciated. Thanks in advance. - CES