Apologies. I am not an experience programmer so I suspect this is a very simple problem. I am trying to get a piece of code in VB for Access to recognise a null set but unfortunately the test is returning False for IsNull even though I know no records have been found in the table, eg.
In other words, there is no record in tlkpFeriados which matches the value of MyDate that I am passing to the sql string yet IsNull is still returning False.
Is the test affected by the format of the date value passed to the string?
Please could someone advice me?
Many thanks in advance!
SB
Code:
strFeriados = "SELECT tlkpFeriados.* FROM tlkpFeriados WHERE ((tlkpFeriados.Fecha)=#" & CDate(MyDate)& "#);"
If IsNull(strFeriados) = False Then
Is the test affected by the format of the date value passed to the string?
Please could someone advice me?
Many thanks in advance!
SB
Comment