H
hermie
I have created next module:
Public Function calperiod(persemana As Date) As String
Select Case persemana
Case Is >= "08/04/04" <= "10/08/04"
calperiod = "10"
Case Is >= "10/09/04" <= "12/31/04"
calperiod = "20"
End Select
End Function
When I call the module in a query it shows 10 for all dates bigger then
10/09/04 instead of 20?
What goes wrong here?
Any help would be appreciated
Herman
Public Function calperiod(persemana As Date) As String
Select Case persemana
Case Is >= "08/04/04" <= "10/08/04"
calperiod = "10"
Case Is >= "10/09/04" <= "12/31/04"
calperiod = "20"
End Select
End Function
When I call the module in a query it shows 10 for all dates bigger then
10/09/04 instead of 20?
What goes wrong here?
Any help would be appreciated
Herman