Results 1 to 4 of 4

Thread: [RESOLVED] object doesn't support property or method

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2012
    Posts
    47

    Resolved [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?

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,510

    Re: object doesn't support property or method

    Shouldn't it be "Set rptapp = Nothing"

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2012
    Posts
    47

    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?

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,510

    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
  •  



Click Here to Expand Forum to Full Width