1,105,386 Community Members

Open Form when clicking fields in crystal report?

Member Avatar
blocker
Posting Whiz
311 posts since Jan 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Is there a way to open a form in vb6 when they clicked on one of the field in crystal report? Ex. If I want to update certain deposit, when clicking on crystal report, it will open the vb6 form to display for editing..

Ive found 1 in vb.net from this site http://www.codeproject.com/Questions/181546/Open-the-windows-form-when-click-on-crystal-report, anybody can make these in vb too?

Private Sub CRV_ClickPage(ByVal sender As System.Object, ByVal e As CrystalDecisions.Windows.Forms.PageMouseEventArgs) Handles CRV.ClickPage
        If e.ObjectInfo.Name = "vouCode" Then
            Dim frmToLoad As New Services
            frmToLoad.LoadOrders(e.ObjectInfo.Text)
            frmToLoad.Show()
        End If
    End Sub

Thank you!

Member Avatar
AndreRet
Industrious Poster
4,492 posts since Jan 2008
Reputation Points: 362 [?]
Q&As Helped to Solve: 499 [?]
Skill Endorsements: 24 [?]
 
0
 

You would have somethjing like this (not sure, you will have to play with the code a bit, have not worked on CR for quite some time now...)

With CRV ''Where CRV is your crystal report name...
    frmEdit.Show 1 ''vbmodal
   End With

This will go under the report click event.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article