Solved

Data Report without any data

Posted on 2002-04-12
8
183 Views
Last Modified: 2010-05-03
Is there a way to use Data Report in VB to create a form and then have the VB program fill in the fields.  The fields on the form would be unbound text fields.  I am trying to print checks but don't want to tie it to all database records.  An example would be appreciated.
0
Comment
Question by:dorinda
[X]
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
  • 3
  • 3
  • 2
8 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 6937309
you could have a dummy mdb file and set that as your datasource.

to have vb fill in your fields you can do something like this:

put a label named label1 in section1.
then you can do:

DataReport1.Sections("section1").Controls("label1").Caption = "Hello World"

Datareport1.show
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6937372
0
 

Author Comment

by:dorinda
ID: 6937462
I really don't want to have a database tied to it...is this possible?
0
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!

 
LVL 18

Expert Comment

by:bobbit31
ID: 6937479
i've been looking around and it seems that's it's not.
emoreau's link just shows how to bind the report at runtime
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6937487
you don't need a database to have a recordset (when using ADO). You can create an in-memory recordset. You will then be able to bind your report to this recordset.
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 6937505
emoreau is correct, you can create a dummy recordset through code and bind your datareport to it at runtime.

need an example?
0
 

Author Comment

by:dorinda
ID: 6942779
Could anyone provide an example of a dummy recordset and how I would bind my datareport to it at runtime....I guess I am not visualizing it.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 6943018
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

718 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