I have designed a datareport with VB6. With a query I deside which info I will display on the report.
There is a field named Primary_address, this field is an integer field.
His value can be 0,1,2,3.... etc. When the value is 0, I will display
a text in the report. How can I do that? I used the code below.

VB Code:
  1. Dim rsDutten As ADODB.Recordset
  2.  
  3.     Set rsDutten = New ADODB.Recordset
  4.     rsDutten.CursorType = adOpenKeyset      
  5.     rsDutten.LockType = adLockOptimistic    
  6.     rsDutten.ActiveConnection = cnParm
  7.  
  8.     rsDutten.Source = "SELECT Type, Benaming, Fabrikant, Datum,
  9.  Revisie_proc, Aktief, Driver, Primary_address, Secondary_address FROM
  10.  dutten WHERE Station = '" & Station & "' ORDER BY Type;"
  11.     rsDutten.Open
  12.  
  13.     Set DataReport2.DataSource = rsDutten
  14.     DataReport2.Orientation = rptOrientLandscape
  15.     DataReport2.Show