Addition to a Query!

B

Bob

This is what the Query code is and this is what I would like to added to
it......Thanks Bob
SELECT tblHorseInfo.HorseID, funGetHorse(0,tblHorseInfo.HorseID,false) AS
Name, [StableReturnDate]
FROM tblHorseInfo
WHERE Status LIKE 'Active*'
ORDER BY funGetHorse(0,tblHorseInfo.HorseID,true),
funGetHorse(0,tblHorseInfo.HorseID,false);
**And if the Horse is in TblInvoice_ItMdl dont show his name***

Thanks in advance.........Bob Vance
 
J

Jerry Whittle

SELECT tblHorseInfo.HorseID,
funGetHorse(0, tblHorseInfo.HorseID, false) ASName,
[StableReturnDate]
FROM tblHorseInfo
WHERE Status LIKE 'Active*'
AND tblHorseInfo.HorseID NOT IN
(SELECT HorseID fromTblInvoice_ItMdl)
ORDER BY funGetHorse(0, tblHorseInfo.HorseID, true),
funGetHorse(0, tblHorseInfo.HorseID, false);

I'm guessing about the names in (SELECT HorseID fromTblInvoice_ItMdl) . You
need to put in the proper fields that link the two tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with Query! 25
Addition to Query 10
Change Row Source to Query! 10
Double Click List Box! 2
Dropdown Select Problem 2
Print order by Date 13
Adding a new column to ListBox! 7
Add Extra Column to List Box 0

Top