-----Original Message-----
Hi Nick
bit concerned that your ID field in the deliverables table could be null
!?!?
however, here's a query that should work for you - there might be a neater
solution, but this one should work - , notice i've omitted the ID field from
the where clause:
SELECT Deliverables.ID, Deliverables.[Date Received], Deliverables.Subject,
Deliverables.[Message Summary], Deliverables.From, Deliverables.FAO,
Deliverables.Owner, Deliverables.[Due Date], Deliverables.Status,
Deliverables.Comment, Deliverables.Delivery, Deliverables.Attachments
FROM Deliverables
WHERE (((Deliverables.[Date Received])=[Forms]! [Deliverables]![Date
Received]) AND ((Deliverables.From)=[Forms]! [Deliverables]![From]) AND
((Deliverables.FAO)=[Forms]![Deliverables]![FAO])) OR (((Deliverables.[Date
Received]) Is Null) AND ((Deliverables.From)=[Forms]! [Deliverables]![From])
AND ((Deliverables.FAO)=[Forms]![Deliverables]![FAO])) OR
(((Deliverables.[Date Received])=[Forms]![Deliverables]! [Date Received]) AND
((Deliverables.From) Is Null) AND
((Deliverables.FAO)=[Forms]![Deliverables]![FAO])) OR (((Deliverables.[Date
Received])=[Forms]![Deliverables]![Date Received]) AND
((Deliverables.From)=[Forms]![Deliverables]![From]) AND ((Deliverables.FAO)
Is Null));
Hope this helps
Cheers
JulieD
SELECT Deliverables.ID, Deliverables.[Date Received],
Deliverables.Subject, Deliverables.[Message Summary],
Deliverables.From, Deliverables.FAO, Deliverables.Owner,
Deliverables.[Due Date], Deliverables.Status,
Deliverables.Comment, Deliverables.Delivery,
Deliverables.Attachments
FROM Deliverables
WHERE (((Deliverables.ID)=[Forms]![Deliverables]![ID] Or
(Deliverables.ID) Is Null) AND ((Deliverables.[Date
Received])=[Forms]![Deliverables]![Date Received] Or
(Deliverables.[Date Received]) Is Null) AND
((Deliverables.From)=[Forms]![Deliverables]![From] Or
(Deliverables.From) Is Null) AND ((Deliverables.FAO)=
[Forms]![Deliverables]![FAO] Or (Deliverables.FAO) Is
Null));
Thanks for this Julia
-----Original Message-----
Hi Nick
use the query builder to build the query again then go
into SQL view (first
icon on the left of the toolbar - click on drop down
arrow) & copy & paste
the content into a post for us to have a look at.
Cheers
JulieD
message
I am having trouble building a query that has mulitple
criterias that are inputted via a form
i.e. I want the query to return documents that were
sent
on a particular day, by a particualar person and for
the
attention of a particular group. Every time I use the
criteria builder but the query returns no results. What
is the code for this.
Cheers
Nick
.
.