Re: DataRepor
From: Veign (NOSPAMinveign_at_veign.com)
Date: 07/14/04
- Next message: Veign: "Re: Checking entire row for duplicates"
- Previous message: Spencer W: "Re: CommonDialog"
- In reply to: Dib: "DataRepor"
- Next in thread: Dib: "Re: DataRepor"
- Reply: Dib: "Re: DataRepor"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 12:24:58 -0400
Sure it is...You could use a disconnected recordset and change the DataField
property at runtime on the report...
So Basically:
- Pull the records from the database
- Disconnect the recordset
- Change the DataField source at runtime like:
drMyReport.Sections("Section1").Controls("txtSomeField").DataField =
"New Field"
- Connect the recordset to the DataReport like:
Set drMyReport.DataSource = RS
So what you are doing is creating the displayed fields from the database at
runtime. Of course you may have to play around with the positioning of the
Controls on the form but this gives you a basic idea...
Example of Disconnected recordset with Datareport:
www.veign.com/vrc_codeview.asp?type=app&id=84
-- Chris Hanscom MVP (Visual Basic) http://www.veign.com -- "Dib" <dNOSPAMshahene@conNOSPAMsoftware.com> wrote in message news:%23qtJyobaEHA.2340@TK2MSFTNGP09.phx.gbl... > Hi, > How can I create a Report in VB 6 as per User Selection. > > > I need to give the User the option to select the fields from the table to > show on the Report and then run the report. > it can be one field or 10 fields. > Is this possible? > > Thanks > Dib > >
- Next message: Veign: "Re: Checking entire row for duplicates"
- Previous message: Spencer W: "Re: CommonDialog"
- In reply to: Dib: "DataRepor"
- Next in thread: Dib: "Re: DataRepor"
- Reply: Dib: "Re: DataRepor"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|