Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing a Dsr file

Status
Not open for further replies.

McKaulick

Programmer
Oct 24, 2002
35
0
0
AR
I want to show a DataReport, but I get an error when I load it. So basically, I have a form with a button, when I click on the button, I want to load the DataReport. Here's the code when I click the button:

Private Sub cmdFaxLetter_Click()
rptFaxLetter.Show
End Sub

So I got an error saying invalid Data Source. But my Report only contain plain text.

Anybody knows what could be my problem?

Thank you!
 
A DataReport object is just a mechanism for displaying a recordset in a tidy format. If you have a recordset, set the DataSource and DataMember properties appropriately. If there is no recordset, use the Printer object direct.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top