T
ToniS
I have a report that I would like to print all exhibitors and their MAIN
address information. I would also
like to print on the same report all Exhbitors that do not have a main or
branch address. (No address exists for the exhibitor)
The ExhibitorAddresses.AddressType can have a value of 1(main address) or
2(Branch address).
Originally the select statement was as follows..
SELECT ES.ExhibitorShowID, ES.ShowId, E.ExhibitorShortName, E.ExhibitorName,
E.Notes, EA.Fax, EA.AddressType, ViewGetFirstBooth.FirstBooth
FROM ExhibitorsShows ES
INNER JOIN Exhibitors E ON ES.ExhibitorID = E.ExhibitorID
INNER JOIN ExhibitorAddresses EA ON E.ExhibitorID =
EA.ExhibitorID
LEFT OUTER JOIN ViewGetFirstBooth ON ES.ExhibitorShowID =
ViewGetFirstBooth.ExhibitorShowID
WHERE (EA.AddressType = 1 and Es.ShowID = '" & CurrentShowID &
"')
ORDER BY E.ExhibitorShortName
I have tried the following and this did not work, the ones that do not have
an address did not print.
SELECT ES.ExhibitorShowID, ES.ShowId, E.ExhibitorShortName, E.ExhibitorName,
E.Notes, EA.Fax, EA.AddressType, ViewGetFirstBooth.FirstBooth
FROM ExhibitorsShows ES INNER JOIN
Exhibitors E ON ES.ExhibitorID = E.ExhibitorID
LEFT OUTER JOIN ExhibitorsAddresses EA ON E.ExhibitorID = EA.ExhibitorID
LEFT OUTER JOIN ViewGetFirstBooth VFB ON ES.ExhibitorShowID =
VFB.ExhibitorShowID
WHERE (EA.AddressType <> 2 and Es.ShowID = '" & CurrentShowID & "')
ORDER BY E.ExhibitorShortName
Thanks
ToniS
address information. I would also
like to print on the same report all Exhbitors that do not have a main or
branch address. (No address exists for the exhibitor)
The ExhibitorAddresses.AddressType can have a value of 1(main address) or
2(Branch address).
Originally the select statement was as follows..
SELECT ES.ExhibitorShowID, ES.ShowId, E.ExhibitorShortName, E.ExhibitorName,
E.Notes, EA.Fax, EA.AddressType, ViewGetFirstBooth.FirstBooth
FROM ExhibitorsShows ES
INNER JOIN Exhibitors E ON ES.ExhibitorID = E.ExhibitorID
INNER JOIN ExhibitorAddresses EA ON E.ExhibitorID =
EA.ExhibitorID
LEFT OUTER JOIN ViewGetFirstBooth ON ES.ExhibitorShowID =
ViewGetFirstBooth.ExhibitorShowID
WHERE (EA.AddressType = 1 and Es.ShowID = '" & CurrentShowID &
"')
ORDER BY E.ExhibitorShortName
I have tried the following and this did not work, the ones that do not have
an address did not print.
SELECT ES.ExhibitorShowID, ES.ShowId, E.ExhibitorShortName, E.ExhibitorName,
E.Notes, EA.Fax, EA.AddressType, ViewGetFirstBooth.FirstBooth
FROM ExhibitorsShows ES INNER JOIN
Exhibitors E ON ES.ExhibitorID = E.ExhibitorID
LEFT OUTER JOIN ExhibitorsAddresses EA ON E.ExhibitorID = EA.ExhibitorID
LEFT OUTER JOIN ViewGetFirstBooth VFB ON ES.ExhibitorShowID =
VFB.ExhibitorShowID
WHERE (EA.AddressType <> 2 and Es.ShowID = '" & CurrentShowID & "')
ORDER BY E.ExhibitorShortName
Thanks
ToniS