I don't know exactly what you are doing with your form but here is a very forgiving way to build a where clause. Basicaly, you just need to insert your field names and control names. You may need to adjust the method for verifying data exists in a given field. Perhaps default value = 0. Then the IsNull would not work.
The major trick to this code is to determine ONE field that must have data and DEMAND the user input data into that field in order to begin. In this example that field is "Customer".
Code:
Dim varWhere As Variant
varWhere = Null
If Not IsNull(Me.Customer) Then
varWhere = "[Customer] Like '" & Me.Customer & "*'"
End If
If Not IsNull(Me.Field2) Then
varWhere = (varWhere + " AND ") & "[Field2] LIKE '" & Me.Field2 & "*'"
End If
If Not IsNull(Me.Field3) Then
varWhere = (varWhere + " AND ") & "[Field3] LIKE '" & Me.Field3 & "*'"
End If
If Not IsNull(Me.Field4) Then
varWhere = (varWhere + " AND ") & "[Field4] LIKE '" & Me.Field4 & "*'"
End If