I have this funtion set up
Function GetAllDate(dt as Date) as Date
GetAllDate = DateAdd("s",-1,DateAdd("d",1,DateValue(dt)))
End Function
i want to call it in my criteria for end dates
Heres what I have in my query criteria:
Between #1/1/2008# And GetAllDate
when i go to run the query i get a data type mismatch
can anyone tell me how I could do this so it will work.
Thanks
Function GetAllDate(dt as Date) as Date
GetAllDate = DateAdd("s",-1,DateAdd("d",1,DateValue(dt)))
End Function
i want to call it in my criteria for end dates
Heres what I have in my query criteria:
Between #1/1/2008# And GetAllDate
when i go to run the query i get a data type mismatch
can anyone tell me how I could do this so it will work.
Thanks