EagleTempest
11-04-2004, 01:54 PM
VB6 and Access
Hello, I was able to use the data environment (DE) to use as a source for a data report. However I want to add a parameter to it to only retieve info based on Quote # such as quote #1. Obviously I no longer can use the DE and will have to code the source info for the data report.
Here's the shape code the DE created
SHAPE {SELECT Quotes.QuoteID, Quotes.CustomerID,
Quotes.CustomerContact, Quotes.QuoteDate, Customers.Address,
Customers.City, Customers.CompanyName FROM Quotes, Customers
WHERE Customers.CustomerID=Quotes.CustomerID} AS Master
APPEND (( SHAPE {SELECT * FROM `Windows`} AS Window
APPEND ({SELECT * FROM `WindowComponents`} AS Component
RELATE 'QuoteID' TO 'QuoteID','WindowNum' TO 'WindowNum') AS
Component) AS Window RELATE 'QuoteID' TO 'QuoteID') AS Window
Can I add WHERE Quotes.QuoteID = intQuoteNum
Hello, I was able to use the data environment (DE) to use as a source for a data report. However I want to add a parameter to it to only retieve info based on Quote # such as quote #1. Obviously I no longer can use the DE and will have to code the source info for the data report.
Here's the shape code the DE created
SHAPE {SELECT Quotes.QuoteID, Quotes.CustomerID,
Quotes.CustomerContact, Quotes.QuoteDate, Customers.Address,
Customers.City, Customers.CompanyName FROM Quotes, Customers
WHERE Customers.CustomerID=Quotes.CustomerID} AS Master
APPEND (( SHAPE {SELECT * FROM `Windows`} AS Window
APPEND ({SELECT * FROM `WindowComponents`} AS Component
RELATE 'QuoteID' TO 'QuoteID','WindowNum' TO 'WindowNum') AS
Component) AS Window RELATE 'QuoteID' TO 'QuoteID') AS Window
Can I add WHERE Quotes.QuoteID = intQuoteNum