Expand|Select|Wrap|Line Numbers
- strSqlBANK = "SELECT Dt , SumOfAmount " & _
- "FROM tblCASHBanked WHERE Dt = #" & dtBank & "#"
What happens is that dtBank will = 01/07/2008, but when I interogate the recordset !Dt = 07/01/2008.
I get two different values
when I run the following code:
Expand|Select|Wrap|Line Numbers
- msgbox Format(dtBank,"dd mmmm yyyy")
however when I run this code:
Expand|Select|Wrap|Line Numbers
- rst.Open strSqlBANK, cnn, adOpenDynamic, adLockOptimistic
- with rst
- msgbox Format(!dt,"dd mmmm yyyy")
- end with
It is driving me absolutley nuts