R
Richard Horne
Hi guys, bit of a problem with a query. For some reason when I Select an
extra field to be dispalyed by the query, even though the extra field does
not have any parameters which affect the query, the results shown are
different.
I.e:
SELECT Phone_Log.[Tel ID], Phone_Log.Date, Phone_Log.Time, Phone_Log.[Taken
By], Phone_Log.Caller, Phone_Log.[Contact Name], Phone_Log.Regarding,
Phone_Log.For, Phone_Log.[Return Call Number], Phone_Log.Message,
Phone_Log.[Priority Level], Phone_Log.Completed, Phone_Log.Follow_Up,
Phone_Log.Quote, Phone_Log.PurchaseOrder, Phone_Log.Order,
Phone_Log.OutgoingCall, Phone_Log.EntryComplete, *
FROM Phone_Log
WHERE (((Phone_Log.For)=7) AND ((Phone_Log.Completed)=False));
Displays 15 results which is the correct query. But when I add an extra
field only one result is shown, can someone correct my query...
SELECT Phone_Log.[Tel ID], Phone_Log.Date, Phone_Log.Time, Phone_Log.[Taken
By], Phone_Log.Caller, Phone_Log.[Contact Name], Phone_Log.Regarding,
Phone_Log.For, Phone_Log.[Return Call Number], Phone_Log.Message,
Phone_Log.[Priority Level], Phone_Log.Completed, Phone_Log.Follow_Up,
Phone_Log.Quote, Phone_Log.PurchaseOrder, Phone_Log.Order,
Phone_Log.OutgoingCall, Phone_Log.EntryComplete, Company_Details.[Telephone
Number], *
FROM Company_Details INNER JOIN Phone_Log ON Company_Details.ID =
Phone_Log.Caller
WHERE (((Phone_Log.For)=7) AND ((Phone_Log.Completed)=False));
Displays only 1 result.
extra field to be dispalyed by the query, even though the extra field does
not have any parameters which affect the query, the results shown are
different.
I.e:
SELECT Phone_Log.[Tel ID], Phone_Log.Date, Phone_Log.Time, Phone_Log.[Taken
By], Phone_Log.Caller, Phone_Log.[Contact Name], Phone_Log.Regarding,
Phone_Log.For, Phone_Log.[Return Call Number], Phone_Log.Message,
Phone_Log.[Priority Level], Phone_Log.Completed, Phone_Log.Follow_Up,
Phone_Log.Quote, Phone_Log.PurchaseOrder, Phone_Log.Order,
Phone_Log.OutgoingCall, Phone_Log.EntryComplete, *
FROM Phone_Log
WHERE (((Phone_Log.For)=7) AND ((Phone_Log.Completed)=False));
Displays 15 results which is the correct query. But when I add an extra
field only one result is shown, can someone correct my query...
SELECT Phone_Log.[Tel ID], Phone_Log.Date, Phone_Log.Time, Phone_Log.[Taken
By], Phone_Log.Caller, Phone_Log.[Contact Name], Phone_Log.Regarding,
Phone_Log.For, Phone_Log.[Return Call Number], Phone_Log.Message,
Phone_Log.[Priority Level], Phone_Log.Completed, Phone_Log.Follow_Up,
Phone_Log.Quote, Phone_Log.PurchaseOrder, Phone_Log.Order,
Phone_Log.OutgoingCall, Phone_Log.EntryComplete, Company_Details.[Telephone
Number], *
FROM Company_Details INNER JOIN Phone_Log ON Company_Details.ID =
Phone_Log.Caller
WHERE (((Phone_Log.For)=7) AND ((Phone_Log.Completed)=False));
Displays only 1 result.