borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to print directly to printer)Next Topic (crystal report - data in columng, print in a row) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Data Shaping Problem
Poster Message
wen_dell
Level: Scholar

Registered: 17-01-2005
Posts: 44

icon Data Shaping Problem

RsShapePur.Open "SHAPE { SELECT PurchaseDelivery.DeliveryCode, InvoiceNo, DeliveryDate, PurchaseDeliverySub.ItemCode, UOM, Qty, SRP, Amount, Description, Company " _
    & "FROM Product, PurchaseDelivery, PurchaseDeliverySub, Supplier " _
    & "WHERE Product.ItemCode = PurchaseDeliverySub.ItemCode " _
    & "AND PurchaseDelivery.DeliveryCode = PurchaseDeliverySub.DeliveryCode " _
    & "AND PurchaseDelivery.SupplierID = Supplier.SupplierID " _
    & "AND Company ='" & Trim(UCase(cboSupplier)) & "' } " _
    & "AS Pur " _
    & "COMPUTE Pur, SUM(Pur.Amount) AS SubTot BY 'Pur.DeliveryCode', 'InvoiceNo', 'Company', 'DeliveryDate'", ConShape, adOpenStatic, adLockReadOnly


this code is working until i insert the code below  
     SUM(Pur.Amount) AS SubTot

and it show a run time error : "Column (Pur.DeliveryCode) does not exist in the appropriate rowset."

i hope you can help me with this problem




____________________________
GOD IS MY SHEPERD

14-02-2007 at 10:30 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Data Shaping Problem
Previous Topic (how to print directly to printer)Next Topic (crystal report - data in columng, print in a row) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder