T
Tony Girgenti
SELECT Trim(customer.customernumber) AS TrimNum,
Trim(customer.name) AS TrimNam,
Trim(customer.address1) AS TrimAdrs_1,
Trim(customer.address2) AS TrimAdrs_2,
Trim(customer.city) AS TrimCity,
Trim(customer.state) AS TrimState,
Trim(customer.zipcode) AS TrimZip_cod,
Trim(customer.emailaddress) AS TrimEmail_adrs,
Trim(customer.phonenumber1) AS TrimPhone_no_1,
tixhistlin.itemnumber AS itemnumber,
MAX(tixhisthdr.postingdate) AS postdate,
SUM(tixhistlin.extendedprice) AS ExtPrice
FROM (customer INNER JOIN tixhisthdr ON customer.customernumber =
tixhisthdr.customernumber)
INNER JOIN tixhistlin ON tixhisthdr.ticketnumber = tixhistlin.ticketnumber
WHERE (tixhistlin.itemnumber Between 'TR0000' And 'TRZZZZ') AND
(tixhisthdr.postingdate Between "20031101" And "20031115") AND
(ExtPrice Between 200 And 400)
GROUP BY Trim(customer.customernumber),
Trim(customer.name),
Trim(customer.address1),
Trim(customer.address2),
Trim(customer.city),
Trim(customer.state),
Trim(customer.zipcode),
Trim(customer.emailaddress),
Trim(customer.phonenumber1),
tixhistlin.itemnumber
ORDER BY Trim(customer.name);
If i use the above statement to extract data from imported ODBC tables, it
works fine except that when
it gets to the "DoCmd.OpenReport strcReportName, acViewPreview", it asks to
enter "ExtPrice".
How do i keep it from asking for ExtPrice ?
It doesn't ask for the other fields, just the ExtPrice.
Any help appreciated.
Thanks,
Tony
Trim(customer.name) AS TrimNam,
Trim(customer.address1) AS TrimAdrs_1,
Trim(customer.address2) AS TrimAdrs_2,
Trim(customer.city) AS TrimCity,
Trim(customer.state) AS TrimState,
Trim(customer.zipcode) AS TrimZip_cod,
Trim(customer.emailaddress) AS TrimEmail_adrs,
Trim(customer.phonenumber1) AS TrimPhone_no_1,
tixhistlin.itemnumber AS itemnumber,
MAX(tixhisthdr.postingdate) AS postdate,
SUM(tixhistlin.extendedprice) AS ExtPrice
FROM (customer INNER JOIN tixhisthdr ON customer.customernumber =
tixhisthdr.customernumber)
INNER JOIN tixhistlin ON tixhisthdr.ticketnumber = tixhistlin.ticketnumber
WHERE (tixhistlin.itemnumber Between 'TR0000' And 'TRZZZZ') AND
(tixhisthdr.postingdate Between "20031101" And "20031115") AND
(ExtPrice Between 200 And 400)
GROUP BY Trim(customer.customernumber),
Trim(customer.name),
Trim(customer.address1),
Trim(customer.address2),
Trim(customer.city),
Trim(customer.state),
Trim(customer.zipcode),
Trim(customer.emailaddress),
Trim(customer.phonenumber1),
tixhistlin.itemnumber
ORDER BY Trim(customer.name);
If i use the above statement to extract data from imported ODBC tables, it
works fine except that when
it gets to the "DoCmd.OpenReport strcReportName, acViewPreview", it asks to
enter "ExtPrice".
How do i keep it from asking for ExtPrice ?
It doesn't ask for the other fields, just the ExtPrice.
Any help appreciated.
Thanks,
Tony