D
DS
I tried to build an SQL statement from 2 Queries. I keep getting a
Syntax Error. Any help appreciated!!
Thanks
DS
SELECT MenuCats.MenuCatID, MenuCats.MenuCat, MenuCats.Active
FROM MenuCats
WHERE MenuCats.Active=-1
And MenuCats.MenuCatID=(SELECT MenuInfo.MenuID, MenuInfo.MenuCatID
FROM MenuInfo
WHERE MenuInfo.MenuID=IsNull([Forms]![MenuMaker]![MenuID]))
ORDER BY MenuCats.MenuCat
Query 1
SELECT MenuInfo.MenuID, MenuInfo.MenuCatID
FROM MenuInfo
WHERE (((MenuInfo.MenuID)=[Forms]![MenuMaker]![MenuID]));
Query 2
SELECT PreSectionQ.MenuID, MenuCats.MenuCatID, MenuCats.MenuCat,
MenuCats.Active
FROM PreSectionQ RIGHT JOIN MenuCats ON PreSectionQ.MenuCatID =
MenuCats.MenuCatID
WHERE (((PreSectionQ.MenuID) Is Null) AND ((MenuCats.Active)=-1))
ORDER BY MenuCats.MenuCat;
Syntax Error. Any help appreciated!!
Thanks
DS
SELECT MenuCats.MenuCatID, MenuCats.MenuCat, MenuCats.Active
FROM MenuCats
WHERE MenuCats.Active=-1
And MenuCats.MenuCatID=(SELECT MenuInfo.MenuID, MenuInfo.MenuCatID
FROM MenuInfo
WHERE MenuInfo.MenuID=IsNull([Forms]![MenuMaker]![MenuID]))
ORDER BY MenuCats.MenuCat
Query 1
SELECT MenuInfo.MenuID, MenuInfo.MenuCatID
FROM MenuInfo
WHERE (((MenuInfo.MenuID)=[Forms]![MenuMaker]![MenuID]));
Query 2
SELECT PreSectionQ.MenuID, MenuCats.MenuCatID, MenuCats.MenuCat,
MenuCats.Active
FROM PreSectionQ RIGHT JOIN MenuCats ON PreSectionQ.MenuCatID =
MenuCats.MenuCatID
WHERE (((PreSectionQ.MenuID) Is Null) AND ((MenuCats.Active)=-1))
ORDER BY MenuCats.MenuCat;