geregs
I@mac
- Local time
- Today, 15:17
- Joined
- Feb 27, 2008
- Messages
- 20
Hi All
I had some problems with filters in access XP but with your help I solve it, but I have another problem with that now. Until now, I used the filter for text fields and number fields and it is working ok, but now I wont to use the filter in date field but it is not working, so, I need help.
The format of the date field is short date.
This is the code for the text field:
filtika = filtika & " and [myfieldname]= '" & Me!FilterTextBox & "'"
If Left(filtika, 5) = " and " Then
filtika = Mid(filtika, 5)
End If
Me.Filter = filtika
Me.FilterOn = True
This is the code for the number field:
filtika = filtika & " and [myfieldname]= " & Me!FilterTextBox
If Left(filtika, 5) = " and " Then
filtika = Mid(filtika, 5)
End If
Me.Filter = filtika
Me.FilterOn = True
And now I need the code if the myfieldname is date field (short date)!
Thanks in advance!
I had some problems with filters in access XP but with your help I solve it, but I have another problem with that now. Until now, I used the filter for text fields and number fields and it is working ok, but now I wont to use the filter in date field but it is not working, so, I need help.
The format of the date field is short date.
This is the code for the text field:
filtika = filtika & " and [myfieldname]= '" & Me!FilterTextBox & "'"
If Left(filtika, 5) = " and " Then
filtika = Mid(filtika, 5)
End If
Me.Filter = filtika
Me.FilterOn = True
This is the code for the number field:
filtika = filtika & " and [myfieldname]= " & Me!FilterTextBox
If Left(filtika, 5) = " and " Then
filtika = Mid(filtika, 5)
End If
Me.Filter = filtika
Me.FilterOn = True
And now I need the code if the myfieldname is date field (short date)!
Thanks in advance!