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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Method 'DiscardSavedData' of object failed error

Status
Not open for further replies.

Frank336

MIS
Aug 6, 2002
41
CA

VB6, CR 8.5(RDC), Access 2000

Hi,

Im trying to print a report from VB without preview. The 1st time i print (via a bouton) everthing is ok but the 2nd time a get an error :

Method 'DiscardSavedData' of object failed


My code look like this :

Report.DiscardSavedData
Report.Database.SetDataSource tempRecordset
Report.PrintOut False



Whats the problem ?


Thanks,
Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top