|
-
Jun 19th, 2012, 03:05 AM
#1
Thread Starter
Member
[RESOLVED] object doesn't support property or method
hi guys.. why is it that i keep getting this error whenever i activate the view form in my program. im using crystal reports9 , vb6 and SQL Server 2000 as a database. here is my code:
Set rptapp = New CRAXDDRT.Application
Set rpt = rptapp.OpenReport(app.Path & "\reports\rptmemo.rpt")
With rpt
.RecordSelectionFormula = "{GMOMemodetails.memodetailid}='" & selecteddetailid & "'"
End With
With crview
.ReportSource = rpt
.ViewReport
' While .IsBusy
' DoEvents
'Wend
.Zoom "90"
.Visible = True
End With
Set app = Nothing 'here is the highlighted area whenever the error comes
Set rpt = Nothing
what should i supposed to do?
-
Jun 19th, 2012, 10:24 AM
#2
Re: object doesn't support property or method
Shouldn't it be "Set rptapp = Nothing"
-
Jun 20th, 2012, 01:18 AM
#3
Thread Starter
Member
Re: object doesn't support property or method
ahh my bad, i didnt revise the code i posted.. anyway do u have any idea how can i call the text objects in the crystal report and set its datafield by coding?
-
Jun 20th, 2012, 10:53 AM
#4
Re: object doesn't support property or method
If this problem is solved, then mark this thread as resolved. Use the "thread tools" option above. Start a new thread for your next question and give a complete explanation of the problem. That will help you get answers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|