Qbf

Dazza666

Registered User.
Local time
Yesterday, 16:31
Joined
Aug 13, 2008
Messages
56
Hi,

I have a query by form set up, the criteria for my StartDate field is

>=[FORMS]![STATISTICS]![txtSTARTDATE] AND <=[FORMS]![STATISTICS]![txtEndDate]

it throws up the 'too complex to be evaluated message'

i've tried using the BETWEEN clause with no luck,

it works fine if i only specify one criteria i.e. >=[FORMS]![STATISTICS]![txtSTARTDATE]

the thing is i'm sure i've had this working before on an older databse (that i can't find)

can someone confirm what i'm doing wrong or whether i can do this at all.

thanks
 
Hi,

I have a query by form set up, the criteria for my StartDate field is

>=[FORMS]![STATISTICS]![txtSTARTDATE] AND <=[FORMS]![STATISTICS]![txtEndDate]

it throws up the 'too complex to be evaluated message'

i've tried using the BETWEEN clause with no luck,

it works fine if i only specify one criteria i.e. >=[FORMS]![STATISTICS]![txtSTARTDATE]

the thing is i'm sure i've had this working before on an older databse (that i can't find)

can someone confirm what i'm doing wrong or whether i can do this at all.

thanks


nevermind,

it works after i retyped [txtEndDate]

weird though because i know there were no gaps because of the brackets, and there were no typos :confused:

UPDATE!

it's because I had the 31 september in the endDate box (imbecile)


thanks anyway
 
Last edited:
Use this instead
Code:
Between [FORMS]![STATISTICS]![txtSTARTDATE] AND [FORMS]![STATISTICS]![txtEndDate]
 

Users who are viewing this thread

Back
Top Bottom