can i ask for another little thing?
Dim stDocName As String
Dim stLinkCriteria As String
Select Case framFilter
Case 1
stLinkCriteria = ""
Case 2
stLinkCriteria = "orders.id_order = " & txtID & ""
Case 3
stLinkCriteria = "orders.supplier = '" & txtSupplier & "'"
Case 4
stLinkCriteria = "orders.employee = '" & employ & "'"
Case 5
stLinkCriteria = "orders.commitment_date = ' '"
Case 6
stLinkCriteria = "order_details.invoice_date = ' '"
Case 7
stLinkCriteria = "order_details.payment_date = ' '"
End Select
'open this form with the data from the framFilter
'''''''''''''''''''''''''''''''''''''''''''''''
stDocName = "see_order"
DoCmd.OpenForm stDocName
Forms(stDocName).Filter = stLinkCriteria
Forms(stDocName).FilterOn = Len(stLinkCriteria) > 0
everithing is just fine
but look at case 5,6,7
5 : i want to display here the records where this field (date) is empty
case 6 and 7 :
same thing exactly but :
they are on a subform of this form....
how can i do that??