You cant maybe help me with a problem?
I split my DB into a FE and a BE since I have done it my order form is giving me a problem.
When I use my filter on my orders form (to select a product easier) my previous selected products dissapear. I have attached two pics so that you can understand my problem better.
My Current code for my filter is:
Private Sub btnSearch_Click()
Dim strFilterSearch As String
strFilterSearch = Nz(Me!txtSearchFilter, "*")
Me![Orders Subform].Form!ProductID.RowSource = "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"
'Debug.Print "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"
Me!ListCount = Me![Orders Subform].Form!ProductID.ListCount
I split my DB into a FE and a BE since I have done it my order form is giving me a problem.
When I use my filter on my orders form (to select a product easier) my previous selected products dissapear. I have attached two pics so that you can understand my problem better.
My Current code for my filter is:
Private Sub btnSearch_Click()
Dim strFilterSearch As String
strFilterSearch = Nz(Me!txtSearchFilter, "*")
Me![Orders Subform].Form!ProductID.RowSource = "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"
'Debug.Print "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"
Me!ListCount = Me![Orders Subform].Form!ProductID.ListCount