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 (BACK UP AND RESTORE DATABASE)Next Topic (How to Convert an Acess DB to MS SQL  Server DB ?) New Topic New Poll Post Reply
AndreaVB Forum : Database : Data Shaping Problem Solved Topic
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
wen_dell
Level: Scholar

Registered: 17-01-2005
Posts: 44
icon Re: Data Shaping Problem

thanks i've fixed it already

____________________________
GOD IS MY SHEPERD

03-04-2007 at 07:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : Data Shaping Problem Solved Topic
Previous Topic (BACK UP AND RESTORE DATABASE)Next Topic (How to Convert an Acess DB to MS SQL  Server DB ?) 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