I'm feeling noob to ask a question about filtering because I did a lot of time but this time I can't find a way
the easy code
Dim StrDate As String
If Nz(Me.Text42.Value) = False Then
StrDate = "01." & Month(Date) & "." & Year(Date)
Else: StrDate = "01." & Me.Text42.Value & "." & Year(Date)
End If
Me.subform.Form.Filter = "[KAR_DATE]>= #" & CDate(StrDate) & "#"
Me.subform.Form.FilterOn = True
Run-time error 3075
syntax error in date in querry expression '([KAR
ATE]>=#1.8.2015#) AND ([__KAR_ID] = mainform.KAR_ID'.
without last ) and the field name is only KAR_ID and not __KAR_ID
any idea?
already try without CDate() and dim as date, add at the end & " And " & like I need for double filter
the easy code
Dim StrDate As String
If Nz(Me.Text42.Value) = False Then
StrDate = "01." & Month(Date) & "." & Year(Date)
Else: StrDate = "01." & Me.Text42.Value & "." & Year(Date)
End If
Me.subform.Form.Filter = "[KAR_DATE]>= #" & CDate(StrDate) & "#"
Me.subform.Form.FilterOn = True
Run-time error 3075
syntax error in date in querry expression '([KAR
without last ) and the field name is only KAR_ID and not __KAR_ID
any idea?
already try without CDate() and dim as date, add at the end & " And " & like I need for double filter