Results 1 to 4 of 4

Thread: Problem with report (Closed)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Exclamation Problem with report (Closed)

    Hello everybody

    I`ve created a report wich gets its recordset from a rather intricate SQL statement, which I will not mention. The thing is that there exist two fields in every record, of which only one has a value and the other is null, or vice versa. In the report I`ve created an unbounded string field which should take on the value of the field which is not NULL. For this purpose some code has been written :

    Code:
    If Not (IsNull({Epis_Mhxanhma.Kwd_Etairias})) And IsNull({Epis_Mhxanhma.Kwd_Texnikou}) Then
      {Etairia.Epwnymia}
    Else
      {Texnikos.Onomatepwnymo}
    This code does not work even for a single recordset (If part asserted). But if I use the following code :

    Code:
    If Not (IsNull({Epis_Mhxanhma.Kwd_Etairias})) And IsNull({Epis_Mhxanhma.Kwd_Texnikou}) Then
      {Etairia.Epwnymia}
    Then I get all the records satisfying the IF statement but none of the others. Why is this so? Can I somehow restate what I`m trying to do?

    thx, in advance

    George Papadopoulos
    Last edited by divined; Jun 27th, 2005 at 02:49 AM.
    SteadFast!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width