Testing if a Subreport is nothing

Posted by: drmueller on 4 August 2017, 3:05 pm EST

  • Posted 4 August 2017, 3:05 pm EST

    Hello guys,


    problem: when i test if an subreport is nothing and he IS nothing, then an error causes, if the subreport exists everything is allright.


    I attach the error as zip. Ill develop a method which searchs the subreport field and if its there its clearly not nothing, but that makes the programm slower.


    How do you check is an subreport is nothing?


     


    2007/08/errorMessage.zip
  • Replied 4 August 2017, 3:05 pm EST

    What code are you using to check that a subreport is null?  Could you please post it?

    You might want to try this:

    If IsDBNull(nullobj) = False Then  'Result is False if the object is null.
                'Do null if null code in here
    End If

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels