aggeliki23
Programmer
hello all, i relativelly new in vb6.
I have a form that user types values for fields of a table, then another form displays the results if the record/s exist. I also created a data report shows these results and my purpose is to print the datareport. I didn't use data enviroment at all but ado shape statement with code.
My problem is that if recordcount results is greater than 1 i want the user selects the record to print navigated with next or previous command button on my form to the records. I don't know what is better to do.
Would it be better create another report displays the current record of the form results and only this record? How can i do this? The current record would look something like rs.AbsolutePosition. Is it possible to pass the current record into a sql query with code and how?
Or would it be better to select the record to print from the report i created something like
srchInvoiceRep.PrintReport True, rptRangeFromTo, from, to
but how know that "from, to" corresponds to the current record of my form?? Any help will be appreciate.
Thank you
in advanced.
I have a form that user types values for fields of a table, then another form displays the results if the record/s exist. I also created a data report shows these results and my purpose is to print the datareport. I didn't use data enviroment at all but ado shape statement with code.
My problem is that if recordcount results is greater than 1 i want the user selects the record to print navigated with next or previous command button on my form to the records. I don't know what is better to do.
Would it be better create another report displays the current record of the form results and only this record? How can i do this? The current record would look something like rs.AbsolutePosition. Is it possible to pass the current record into a sql query with code and how?
Or would it be better to select the record to print from the report i created something like
srchInvoiceRep.PrintReport True, rptRangeFromTo, from, to
but how know that "from, to" corresponds to the current record of my form?? Any help will be appreciate.
Thank you
in advanced.