We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,692 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Open Form when clicking fields in crystal report?

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!

2
Contributors
1
Reply
8 Hours
Discussion Span
2 Months Ago
Last Updated
15
Views
blocker
Posting Whiz
308 posts since Jan 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 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.

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0580 seconds using 2.64MB