PDA

Click to See Complete Forum and Search --> : [General] Using Data Report?


n0z1
Jul 11th, 2000, 12:31 PM
Hello,

I'm pretty new to the VB Data Report [ie: I don't know how to use it :)] and I'm wondering if there's any tutorial on this subject. I've tried to follow the one on MSDN but couldn't get the result that I wanted. What I wanted to do is:

I want to retrieve data from an access database and put entries from a table on the data report. I've got a connection to the databse, and I don't know how to put the items/entries on the report.

Thanks in advance!

Nathan
Jul 11th, 2000, 12:51 PM
First thing, are you using the data environment or are you looking for a way to dynamically bind the fields on the data report?

n0z1
Jul 11th, 2000, 12:59 PM
Actually, nothing fancy. It's just a static set of data. I'm not using the data environment, I only hardcoded the database connection initialization.

Nathan
Jul 11th, 2000, 01:05 PM
Ok, so now I'm confused... Is the information that you want in the data report in a table in a database? give me an example if you can.

n0z1
Jul 11th, 2000, 02:18 PM
Yes. Here it goes:

I've got a .mdb file, and a table. I just want the report to show the entries in that table.

Nathan
Jul 11th, 2000, 02:55 PM
The easiest thing for you to do would be to set up a data environment with a connection to your database and a command object that would return the contents of the table in a recordset. Then setup the data report the way you would like the information to display and bind the fields on the data report to the fields in your recordset. Let me know if I'm making any sense to you...