Ok my code was fine EXCEPT I forgot that dates are surrounded by #'s in SQL. The the really real code should have looked like this:
prcRating = DAvg(vepField, tblName, "[Date] BETWEEN #" & TextFromDate2 & "# AND #" & TextToDate2 & "#")
Just in case anyone goes stupid like i did, they can...
oops, i think I answered my own question. That character must somehow signify Horizontal Tab which a following line of code changes the variable too if it is Null, now i just have to find the reason its null? Thanks for you time, Kinda sorry I posted anything now ><.
prcRating = DAvg(vepField, tblName, "[Date] BETWEEN " & TextToDate2 & " AND " & TextFromDate2)
returns the asccii character #218: "?" or at least that is what it looks like to me. Any help is appriciated!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.