Offhand I don't remember, but I know there are times where it is necessary. I
thought dates was one of them, but maybe I'm wrong about that. It may be with
combobox values only?? I've had enough problems with it where I just got into
the habit of always using Eval.
Interesting. with dates, they need to be delimited with #
The only other thing I can think of would be trying to use a column other
than the bound column of a combo. A query can't understand that, but I have
never tried that so I don't know if an Eval would resolve it or not.
Just curious.

Signature
Dave Hargis, Microsoft Access MVP
> Offhand I don't remember, but I know there are times where it is necessary. I
> thought dates was one of them, but maybe I'm wrong about that. It may be with
[quoted text clipped - 18 lines]
> > > > (3 & 3).
> > > > Thanks in advance.
Jim Burke in Novi - 17 Jul 2008 22:11 GMT
When I use textbox dates in criteria in a 'stored' query, I use Eval, and
there is no need for #. If I specify dates in an SQL string in VBA code, then
I include the # around the date value, e.g.
"WHERE tbl1.myDate = #" & txtDate & "#"
As for the combobox thing, you may be right. I know I sometimes use a column
from a combobox that is not the bound column in criteria, so maybe that's the
only instance where you need Eval with a combo box. But query cirtieria with
form controls has caused me enough problems to the point where I always use
Eval, and it works every time. Maybe not quite as efficient, but I know it
works!
> Interesting. with dates, they need to be delimited with #
> The only other thing I can think of would be trying to use a column other
[quoted text clipped - 25 lines]
> > > > > (3 & 3).
> > > > > Thanks in advance.
Klatuu - 17 Jul 2008 22:23 GMT
Not doubting it will work, just never had a case where I need it.

Signature
Dave Hargis, Microsoft Access MVP
> When I use textbox dates in criteria in a 'stored' query, I use Eval, and
> there is no need for #. If I specify dates in an SQL string in VBA code, then
[quoted text clipped - 38 lines]
> > > > > > (3 & 3).
> > > > > > Thanks in advance.