Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP-Passing an Access query to Crystal

Status
Not open for further replies.

Dross

Programmer
Aug 16, 2001
212
US
I built an Access query and need to pass it to Crystal but I'm not sure how. I need help ! I guess I need to pass paramID, but how? If you can help THANKS !! Here is the query:

SELECT Invoice.ClientSSN, Invoice.LastName, Invoice.FirstName, Invoice.Address, Invoice.Address2, Invoice.City, Invoice.StateProvince, Invoice.ZipCode, Client.HomePhoneNumber, Invoice.InvoiceNumber, Invoice.TaxWiseInvoiceNum, Invoice.OfficeID, Invoice.InvoiceDateTime, Lookup_ProductType.Description, Invoice.TaxYear
FROM ((Invoice LEFT JOIN Client ON Invoice.ID = Client.ID) LEFT JOIN Office ON Invoice.OfficeID = Office.OfficeCode) LEFT JOIN Lookup_ProductType ON Invoice.ID = Lookup_ProductType.ID
WHERE Invoice.ID = [paramID];


 
Sure you got that right? Looks like Access is supposed to receive the parameter , not supply it.

Mike

 
Your guess is as good as mine, I am learning as I go.
 
Link Crystal reports to the query not the mdb file and create the report as normal. The query will refresh each time the report is run.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top