Dear Christopher:
If [date] is a text value, then it is fine, assuming what it does is
what you mean to do.
I suspect the value is a date/time datatype. If so, and you are
testing for December, I recommend:
select * from abc where MONTH([date]) = 12
that will extract the number of the month from a date that is, at
least, more intuitive to read.
So, being "correct" could just mean it does not error. Without
knowing what kind of data is stored in [date] or what you mean to do
with it (I was just guessing you were looking for December in
'20031210') I cannot really tell if it is logically correct. Does it
give you an error? Does it not behave the way you expected?
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
hi, i was wondering if the sql above correct or not?
regards,
Chris