Is the data in Forms!frmFinancial!cboEndDate a date or text? You might change
it to something like this:
CDate(Forms!frmFinancial!cboEndDate)
How many columns are in cboEndDate? Not how may do you see, but rather, that
in the Column Count format property of the combo box? You could be pointing
at the wrong column and need to use the Column property to point to the right
one. If memory serves, the first combo box column is 0 and not 1.

Signature
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> Hello,
> I have a table that contain period begin date and period enddate as follows:
[quoted text clipped - 13 lines]
> "WHERE petime= 'CL' pebedt between " & "#" & begindate & "#" & " And
> " & "#" & enddate & "#"
deodev - 22 May 2007 15:06 GMT
Hi Jerry,
The combo box is actually populated from a query that reads a date field
from the dbo_periodt table and the column count format property is one.
I tried the Cdate, the variable endate (which I assigned the cboEndDate) but
it seems that the datediff function is not reading the variable - might be
the syntax???

Signature
deodev
> Is the data in Forms!frmFinancial!cboEndDate a date or text? You might change
> it to something like this:
[quoted text clipped - 23 lines]
> > "WHERE petime= 'CL' pebedt between " & "#" & begindate & "#" & " And
> > " & "#" & enddate & "#"