Solved

Data Report without any data

Posted on 2002-04-12
8
178 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
Technology Partners: 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

731 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