DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   datareport creation doubt (http://www.daniweb.com/forums/thread49424.html)

vjeshemv2000 Jul 6th, 2006 3:00 am
datareport creation doubt
 
2 Attachment(s)
hai all,
i have created a vb project and stored data into a databse named faculty. now i want to extract the details from the database. the fields included in the table are slno,faculty,subject,batch,ctr1...ctr6,overall per...
my requirement is when i selected any one of the faculty then the report will shows like in fig2(datareport 2.jpg which is attched.). the currect report design is shown in fig1(datareport1.jpg which is also attached)

it is possible if yes pls reply me

thank you

elaek May 6th, 2007 7:32 am
Re: datareport creation doubt
 
You can use :
Reportobjectname.SelectionFormula="{TableName.FieldName}=Criterium".

If the Crystal report object name is: Report1
If your tanlename=Table1
If your field name for selection =Faculty
If Creterium is "Faculty=Mascara"

So you have to write:
Report1.SelectionFormula="{Table1.Faculty}='Mascara'"


All times are GMT -4. The time now is 1:35 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC