T
Ticotion
Hi
I have a problem filtering a form on dates. I use the following code which
is activated when a user push a botton
Private Sub Kommandoknap148_Click()
If IsNull(Me.Kombinationsboks144) Then
' check if the user has entered a department
MsgBox "Vælg en Produktionslinje"
Else
Me.Filter = "[Prodlinje] = '" & Me.Kombinationsboks144 & "' And [Datem]=#" &
Me.Kombinationsboks136 & "#"
Me.FilterOn = True
End If
End Sub
When it filters my form it reverse the date syntaks (it is dd-mm-yyyy) and
it finds records that have yyyy-mm-dd. How do I solve this problem?
Help please
Ticotion
I have a problem filtering a form on dates. I use the following code which
is activated when a user push a botton
Private Sub Kommandoknap148_Click()
If IsNull(Me.Kombinationsboks144) Then
' check if the user has entered a department
MsgBox "Vælg en Produktionslinje"
Else
Me.Filter = "[Prodlinje] = '" & Me.Kombinationsboks144 & "' And [Datem]=#" &
Me.Kombinationsboks136 & "#"
Me.FilterOn = True
End If
End Sub
When it filters my form it reverse the date syntaks (it is dd-mm-yyyy) and
it finds records that have yyyy-mm-dd. How do I solve this problem?
Help please
Ticotion