D
DawnTreader
here is my SQL as it stands:
SELECT ALL
ProductID,
WO,
Section,
IMWPNID,
PartDesc,
Manufacturer,
MfgPN,
REF,
BQTY,
SQTY,
UnitPrice,
SkidValue,
GoodFilter,
[1000HrMaint],
[5000HrRebuild],
[10000HrRebuild],
[15000HrRebuild],
[20000HrRebuild],
[25000HrRebuild],
PartListId
FROM aqryNewPartListIdea
UNION ALL SELECT
ProductID,
WO,
"" AS Section,
IMWPNID,
PartDesc,
Manufacturer,
MfgPN,
"" AS REF,
BQTY,
SQTY,
UValue AS UnitPrice,
SValue AS SkidValue,
GoodFilter,
[1000HrMaint],
[5000HrRebuild],
[10000HrRebuild],
[15000HrRebuild],
[20000HrRebuild],
[25000HrRebuild],
"From aqryTestingCBAPartList" AS PartListId
FROM aqryTestingCBAPartList
ORDER BY IMWPNID;
how do i tell it not to show a record from the second query if the IMWPNID
is the same as the first query? i found some SQL someone posted but it
crapped out this was the line i added based on the SQL i found:
WHERE aqryTestingCBAPartList.IMWPNID <> (SELECT DISTINCT
aqryNewPartListIdea.IMWPNID FROM aqryNewPartListIdea)
when i ran it i got the message:
"At most one record can be returned by this subquery. (Error 3354)"
i changed a few things and it gave me results, and then when i scrolled down
the records it crapped out again and gave me the same message, multiple
times, then showed ?#Name in all the fields in all the columns.
anyone have a suggestion?
SELECT ALL
ProductID,
WO,
Section,
IMWPNID,
PartDesc,
Manufacturer,
MfgPN,
REF,
BQTY,
SQTY,
UnitPrice,
SkidValue,
GoodFilter,
[1000HrMaint],
[5000HrRebuild],
[10000HrRebuild],
[15000HrRebuild],
[20000HrRebuild],
[25000HrRebuild],
PartListId
FROM aqryNewPartListIdea
UNION ALL SELECT
ProductID,
WO,
"" AS Section,
IMWPNID,
PartDesc,
Manufacturer,
MfgPN,
"" AS REF,
BQTY,
SQTY,
UValue AS UnitPrice,
SValue AS SkidValue,
GoodFilter,
[1000HrMaint],
[5000HrRebuild],
[10000HrRebuild],
[15000HrRebuild],
[20000HrRebuild],
[25000HrRebuild],
"From aqryTestingCBAPartList" AS PartListId
FROM aqryTestingCBAPartList
ORDER BY IMWPNID;
how do i tell it not to show a record from the second query if the IMWPNID
is the same as the first query? i found some SQL someone posted but it
crapped out this was the line i added based on the SQL i found:
WHERE aqryTestingCBAPartList.IMWPNID <> (SELECT DISTINCT
aqryNewPartListIdea.IMWPNID FROM aqryNewPartListIdea)
when i ran it i got the message:
"At most one record can be returned by this subquery. (Error 3354)"
i changed a few things and it gave me results, and then when i scrolled down
the records it crapped out again and gave me the same message, multiple
times, then showed ?#Name in all the fields in all the columns.
anyone have a suggestion?