sudh11482 0 Newbie Poster

Dear All,

I am using following code at command button named as 'Print'.
While running the project it is giving error at the line :

Set RptTaxArrear.DataSource = TmpRec

"Run Time Error -2147024770(8007007e)'.
Automation Error - The Specified module could not be found."

'******************************
TmpRec As New ADODB.Recordset

If TmpRec.State = 1 Then TmpRec.Close
Set TmpRec = oTaxSlab.TaxArrearListSrvr
If TmpRec.EOF = False And TmpRec.BOF = False Then

Set RptTaxArrear.DataSource = TmpRec

RptTaxArrear.Sections("Section2").Controls("LblReportHeading").Caption = UCase(headinName)
RptTaxArrear.Refresh
RptTaxArrear.WindowState = vbMaximized
RptTaxArrear.Show vbModal
Else
MsgBox "Record Not Found"
End If
End If
'***********************************
Any help will be appreciated....

Thanks in advance.
With Regards,
Sudh11482

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.