| re: filter by form/selection MISMATCH in Criteria Expression
Try this:
CDate(DateSerial("yyyy", "mm", "dd)) where the date in the dateserial is
your important date. It sounds like it is treating DateSerial as a text
value.
Linda
"Takeadoe" <mtonkovich@msn.com> wrote in message
news:1139971094.423898.109490@o13g2000cwo.googlegr oups.com...[color=blue]
>I recently asked the group for help on converting 3 numeric variables
> to a new date variable. The DATESERIAL function below worked
> perfectly! My question now relates to problems with this new variable
> when I try to filter either by form or selection.
>
> If I type 10/20/2005, just as you see it, with no quotes or other
> punctuation, in the testHarvestDate field I get the following error
> message: DATATYPE MISMATCH IN CRITERIA EXPRESSION and Access then locks
> up on me!
>
> What is the problem here? Any help would really be appreciated.
>
> Regards,
>
> Mike
>
> testHarvestDate:
> DateSerial((IIf([harvest_month]=1,2006,2005)),[harvest_month],[day])
>[/color] |