Declaring the parameters in the query is a good move.
If the text boxes on the form are unbound, set their Format property to
Short Date. This helps Access interpret the data correctly, and prevents the
user entering invalid dates.
If that does not solve the problem, post the actual SQL statement from the
query. If it is complex, please format it one field/clause per line to make
it a bit more readable.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Brigitte P" <Brig...@discussions.microsoft.com> wrote in message
news:ED44AC32-015F-4D38...@microsoft.com...
>I have the following expression in a query:Between
>[Forms]![frmLookupNameBlue
> Notes]![StartDate] And [Forms]![frmLookupNameBlue Notes]![EndDate]
> which worked for years. Today my users get error 3071, expression to
> complex. I did try anything I know, including setting the parameters.
> There
> are several other fields that take values from the above form, but the
> date
> seems to be the offending field.
> I'm working in Access XP in a Windows 2000 network environment. As I said,
> it worked for years, and in fact, early this morning and then we got the
> error. Any ideas. \
> Brigitte P.
or I type
3//2005
or other similar typos.
--
Ken Snell
<MS ACCESS MVP>
"Allen Browne" <Allen...@SeeSig.Invalid> wrote in message
news:ueG5UDHN...@TK2MSFTNGP12.phx.gbl...