crystal report 9 have field in report be placed into a label in vb

I am using the crviewer. I want to have a label on my vb 6 form that is linked to the field in crystal report. the updating of this will be with this

Private Sub CrReport_AfterFormatPage(ByVal PageNumber As Long)
'
like

label = crreport.field(text).text

something like this. Is this possible.



end sub



bear23Asked:
Who is Participating?
 
mlmccConnect With a Mentor Commented:
I can't do it in CR8.  It may be possible in CR9 but I don't have CR9 to try with.

On the form with the viewer try to create the code.
From the code page
Select the objects and see if any of the have the event you need.
If it is possible, I suspect your code is close.

frm_form1.lblMaterial.caption = CrRpt.fields({Material1}).text
or maybe
frm_form1.lblMaterial.caption = {Material1}

mlmcc
0
 
mlmccCommented:
Is there only one record?

Is it on the same form?

It may be.  I check into it.

mlmcc
0
 
bear23Author Commented:
yes this will be on all the forms. I will have several records(pages) there will be more than one record on a form. We can call the field (Material1) for naming purposes.



0
 
mlmccCommented:
Glad I could help

mlmcc
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.