Unfortunately that won't work in an adp, but thanks for the suggestion.
Randall Arnold
The date only part:
Convert(DateTime,Convert(VarChar(11),DateTimeField))
If you have to do this quite often, consider creating your own function that
is the equivalent of DateValue().
-- Function to remove the time value from a date and time
Create Function DateValue
(@DateAndTime datetime)
Returns DateTime
AS
BEGIN
Return Convert( DateTime,Convert(VarChar(11), @DateAndTime) )
END
You can then use the function in your SQL like
dbo.DateValue(DateAndTimeField)

Signature
Duane Hookom
MS Access MVP
--
> Unfortunately that won't work in an adp, but thanks for the suggestion.
>
[quoted text clipped - 18 lines]
>> >
>> > Randall Arnold
Randall Arnold - 04 Nov 2005 23:51 GMT
Thanks Duane. Hopefully I'll only have to do this once...
Randall Arnold
> The date only part:
> Convert(DateTime,Convert(VarChar(11),DateTimeField))
[quoted text clipped - 36 lines]
> >> >
> >> > Randall Arnold