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 (Crystal 9.2 and Stored Procedures problem)Next Topic (How to Display actual size(images) to oleobject in Crystal Report) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : can not display report 2 tables with condition
Poster Message
seang_sophorn
Level: Big Cheese

Registered: 07-06-2005
Posts: 26

icon can not display report 2 tables with condition

hi, all
I have two tables tblCustomerCredit is the main talbe and tblCustomerPaid is the subtable.

In the Dataenvironment of VB i have add tblCustomerCredit is main command and tblCustomerPaid is child command.

and In my datareport it can work with all the records, but i want to display those record by condition (Ex. by CustomerName).

here my SQL statrment:

Private Sub CmdPrintData_Click()
Dim Str As String
Str = "Select From tblCustomerCredit.*,tblCustomerPaidDetail.*" _
& " INNER JOIN tblCustomerPaidDetail On tblCustomerCredit.InvoiceNumber=tblCustomerPaidDetail.InvoiceNumber"
DataEnvironment1.rstblCustomerCredit.Open Str
RptCustomerCredit.Show
End Sub

so can i using where clause to display those recordsby condition?


____________________________
need for your help

01-02-2006 at 04:03 AM
View Profile Send Email to User Show All Posts | Quote Reply
xtramac
Level: Professor


Registered: 28-08-2005
Posts: 89
icon Re: can not display report 2 tables with condition

hello,

try looking at this post by TJ_01.. i think it can be of help...

http://www.andreavb.com/forum/viewtopic.php?TopicID=6229&page=0#20864
  


andrew

01-02-2006 at 04:15 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : can not display report 2 tables with condition
Previous Topic (Crystal 9.2 and Stored Procedures problem)Next Topic (How to Display actual size(images) to oleobject in Crystal Report) 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