Hi there,,,(ASAK)
I Think i have the solution to your Que?
According to my Analysis on Your code.. I think Your Report is already having the fields from database...that is ,,, in your rpt file .. u are assigning the tables from database and designed all the things as ussual..
now from code u r trying to change the database to DATASET . right,,,
So... This method is known as DATA PUSHING through DATASEt, It means it will push the data from data set to the report only when there is no data available. else it will ignore ur dataset...
in order to solve this issue,, USE .XSD data set.
i mean,,, IN place of ur dataset name use the name of .xsd data set..
like dim ds as dataset replace this bye...
dim ds as dataset1 and use this dataset in ur rpt file as a database.....
open ur rpt file... go to add/rmove databse...
there, u will find project data..
click that ,, and u will see ur .xsd dataset name over there, now this dataset will act like a complete database.. now wht ever u want to do. u can do through coding using this data set .
if u need the code ..or compelete rpt plus form then .. tell me,,IA ,, i will send u through email....
bye'
take care
AH
Mohammed Raza Ullah Khan
|