Carlosdl
29710 pts. | Nov 9 2009 11:08PM GMT
I’m wondering how is that running without errors.
AFAIK, the DATEPART function retunrs an integer, so, here:
[service date 1] between [new patient date] and datepart(m,[new patient date])+1
You are mixing two different data types.
I think you should try something like this:
[service date 1] between [new patient date] and DATEADD(m,1,[new patient date])






