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!

Datareport - Invalid Data Source Error!

Status
Not open for further replies.

gazal

Programmer
Apr 30, 2003
212
0
0
OM
Hi Friends

I am facing problems in dispalying datareport,

I have created a datareport with all the labels on it and from my form i am simply calling the report by
Datareport1.show

It gives me error: Invalid Data Source.

I searched microsoft for this error but as usual no help.

And even when i give some datasource to the report, the same error is thrown...

I m using VB 6 SP5, Win 2K, Sql Server 2000
Pls.. help...

Gazal
 
Do have a valid data source?
The datareport needs a data source.
E.G.
Set Datareport1.DataSource = Recordset

Regards Hansu
(Thanks for your DataGrid tips)
 

Thanks for ur response as well

but i have mentioned clearly that i have tried with datasource also but still it gives same problem...

Regards
Gazal
 
I think the DataMember property needs to be set as well.

Regards Hansu
 
hi

no one there to help me out, or anyone knows any good report writer which i can get for no cost or may be for some minimal amount...

Regards

Gazal
 
Have you tried using the dataenviornment? that is a very crude way to see if you are at least connecting. all inputs are set at design-time
-Stew

LoL Concepts®
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top