Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display parameter on report

Status
Not open for further replies.

Andy4711

Programmer
Aug 25, 2009
3
DE
Dear all,

I'm trying to display a parameter on my report but somehow it doesn't work. :-(

I created a global string parameter email.

In the data stream I instereted the code below:

Function Fetch( ) As AcDataRow
Dim row As ssCampaignDataRow
Set row = Super::Fetch()
If row.ssSub_Type = "TDS" Then
email = "tds@hallo.de"
Else
email ="msdds@hallo.de"
End if
End Function

Then I added a new text field and in ValueExp I just entered email.

I don't get any compile errors, but then no data is dispalyed. [surprise]
Any suggestions of what I need to change? Any help is appreciated.

Thanks
Andreas
 
The following code solves my problems:

Function Fetch( ) As AcDataRow
Set Fetch= Super::Fetch()

If Fetch Is Nothing Then
Exit Function
Else
If Fetch.GetValue("ssSub_Type") = "TDS" Then
email = "tds@hallo.de"
Else
email ="msds@hallo.de"
End if
End If
End Function

The value is then displayed correctly.
 
Help How can i can make a report that will continue on the second column of the first page , like the ms word by selecting two columns ......


please help what should i do, would i write it on codes or need a component...

THank YOu!
 
You have to use parallel sections, there's no need to code. Give the online help a look how to do this!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top