Hi I have a query in access as follows:
dtBank has been dimmed as a date
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:
the result is : 01 July 2008
however when I run this code:
The result is: 07 January 2008
It is driving me absolutley nuts
Code:
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:
Code:
msgbox Format(dtBank,"dd mmmm yyyy")
however when I run this code:
Code:
rst.Open strSqlBANK, cnn, adOpenDynamic, adLockOptimistic with rst msgbox Format(!dt,"dd mmmm yyyy") end with
It is driving me absolutley nuts
Comment