Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


VB DataReport object tips and instructions

Posted on 2002-03-08
Medium Priority
Last Modified: 2010-05-02
Hello everyone,

I'm using the VB6 DataReport object with success in my database application for a while now but I need to add some more advanced features to my reports.  I have all the basics down already, suchas passing criteria to the Command SQL string from a form, calculating fields etc.  What I'd like to learn to add is:

1 - User selectable sort options from a form
2 - Printing the users criteria selections at the top of the report (i.e., date ranges, tec)
3 - Showing report generation progress with a progress bar

and so on.

Can anyone suggest a book I can pick up or a website I can reference where this type of stuff is expanded on?  I have a lot of experience with Access' report engine and some experience with Crystal but I'd like to keep it all native to VB.

Thanks for any suggestions, even partial suggestions, in advance.

Question by:rlrubio
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 18

Accepted Solution

bobbit31 earned 300 total points
ID: 6851773
1: just change the query of the report based on the selections on the form?

2: put a label on your report and you can set the caption of it by doing something like

rpt.sections("section1").controls("label1").caption = "blah"

before showing the report

Author Comment

ID: 6881415
Well, I'll give it a couple more days to see if anyone else cares to respond.  Otherwise bobbit31 gets the points for at least offering some info.

Expert Comment

ID: 6882056

Author Comment

ID: 6903591
You get points for at least giving a partial answer and trying to help.  Thank you.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question