>I would appreciate some help writing a function for access. I have a table
>that contains 3 date fields. I need a function that returns a count
[quoted text clipped - 6 lines]
>time b = enter que
>time c = exit que
Marsh thanks for the quick response I wrote this in a query but it returned 0
for every record.
Waiting: DCount("*",[TC_Time_Stamps]," [TC_Time_Stamps]![Arrival] between
[TC_Time_Stamps]![Start Que] and [TC_Time_Stamps]![End Que]")
Any suggestions
Zb
> >I would appreciate some help writing a function for access. I have a table
> >that contains 3 date fields. I need a function that returns a count
[quoted text clipped - 10 lines]
>
> DCount("*", "thetable", "timeA Between timeB And timeC")
Marshall Barton - 22 Dec 2007 05:03 GMT
Query? What query? I thought you wanted to use this in a
text box expression or a VBA procedure.
In those cases, I think you need to use:
DCount("*", "TC_Time_Stamps", "Arrival Between [Start Que]
And [End Que]")
Using that in a query doesn't make much sense because the
function's value will be the same on every row.
Or did I misunderstand what you want to do?

Signature
Marsh
MVP [MS Access]
>Marsh thanks for the quick response I wrote this in a query but it returned 0
>for every record.
[quoted text clipped - 16 lines]
>>
>> DCount("*", "thetable", "timeA Between timeB And timeC")