You cannot use controls in conjunction with queries like that.
You'll have to create a form that has a calendar on it, and call the query
from that form.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Hi All
> I am trying to use an unbound DTPicker control to allow the user to pick a
[quoted text clipped - 10 lines]
>
> Arthur Ross
aross - 22 Jun 2005 12:32 GMT
Hi Douglas
The DTPicker control and the list box are on the same form.
The list box shows a set of items which contain a date.
I want to allow the user to pick a date in the DTPicker and have the list
box updated to show only those items with a date >= the date chosen by the
user.
It works fine if I use a Text box to enter the date, but I dont appear to be
able to refer to the DTPicker in the QBE grid.
I am happy to write code to create a recordset to act as the rowsource for
the listbox, but I cant seem to trap any event for the DTPicker other than
OnExit.
Is there any way to tell if the DTPicker has been updated ( the onupdated
event doesnt seem to fire)
Thanks for your help.
Arthur Ross
> You cannot use controls in conjunction with queries like that.
>
[quoted text clipped - 15 lines]
> >
> > Arthur Ross
Douglas J. Steele - 22 Jun 2005 22:29 GMT
Why not have the DTPicker update the text box then?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Hi Douglas
>
[quoted text clipped - 39 lines]
>> >
>> > Arthur Ross