Hi All, I'm working with a datset that contans dates all of which have been input as strings. Because some values are either not present, zero lengtrh strings and so on I have written a couple of simple functions to help me to analyse the dataset.
The output of one function is the date difference (this is calculated within the function using datediff). My understanding is that the output of datediff is a CLng which I thought was a number (which is what I need it to be for my analysis). The query itself filters the output of the function field for values >=28 which seems to be working ok, but I then want to order the output and it is behaving as though it is a string with 99 at the top and values such as 238 well doen the list with 2's.
Can anyone help with what is going on and what I need to do please?
Thanks.