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!

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.

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.