I have the following field in a query.
DLookUp("gl_perod_id","ingres_gl_perod_tbl","[gl_perod_stdt]<=" &
Format([BegDate],"\#mm\/dd\/yyyy\#") & " and [gl_perod_enddt]>=" &
Format([BegDate],"\#mm\/dd\/yyyy\#"))
It keeps on giving me #Error. Any ideas or suggestions? I am using Access
2003.
I solved the problem.
The function should be....
DLookUp("gl_perod_id","ingres_gl_perod_tbl","cdate([gl_perod_stdt])<= " &
Format([BegDate],"\#mm\/dd\/yyyy\#") & " and cdate([gl_perod_enddt])>= " &
Format([BegDate],"\#mm\/dd\/yyyy\#"))

Signature
M. Shipp
> I have the following field in a query.
>
[quoted text clipped - 4 lines]
> It keeps on giving me #Error. Any ideas or suggestions? I am using Access
> 2003.
Pieter Wijnen - 05 Oct 2007 18:44 GMT
Even better (more portable) is using military Format
ie
yyyy-mm-dd
HtH
Pieter
>I solved the problem.
>
[quoted text clipped - 12 lines]
>> It keeps on giving me #Error. Any ideas or suggestions? I am using Access
>> 2003.