Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

access mdb vs mde

Discussion in 'Information Technology' started by gonzosez, Jul 28, 2006.

Tags:
  1. gonzosez

    gonzosez
    Expand Collapse
    Guest

    I have an application that I turn into a mde.
    The problem is that if there is no data on a report I use the following
    function.

    Private Sub Report_NoData(Cancel As Integer)
    MsgBox "There is no data for the criteria you selected."
    Cancel = True
    End Sub

    works great for the mdb file but blows up when a mde file.
    Any ideas?
     
  2. Loading...


  3. Joan Wild

    Joan Wild
    Expand Collapse
    Guest

    The code should not make a difference whether it's run in a mdb or mde.

    Could you please provide more specifics with regard to 'blows up'.


    --
    Joan Wild
    Microsoft Access MVP

    gonzosez wrote:
    > I have an application that I turn into a mde.
    > The problem is that if there is no data on a report I use the
    > following function.
    >
    > Private Sub Report_NoData(Cancel As Integer)
    > MsgBox "There is no data for the criteria you selected."
    > Cancel = True
    > End Sub
    >
    > works great for the mdb file but blows up when a mde file.
    > Any ideas?
     
  4. Pat Hartman\(MVP\)

    Pat Hartman\(MVP\)
    Expand Collapse
    Guest

    You need to trap the error (2501 I think) and ignore it.

    "gonzosez" <adf> wrote in message
    news:eU5N9T$iGHA.836@TK2MSFTNGP02.phx.gbl...
    >I have an application that I turn into a mde.
    > The problem is that if there is no data on a report I use the following
    > function.
    >
    > Private Sub Report_NoData(Cancel As Integer)
    > MsgBox "There is no data for the criteria you selected."
    > Cancel = True
    > End Sub
    >
    > works great for the mdb file but blows up when a mde file.
    > Any ideas?
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page