Results 1 to 6 of 6
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    application defined error / invalid use of null

    new error: (and not certain when it started ... which would have been insightful)

    on a FormOpen event:
    application defined error... invalid use of NULL()

    tried stepping through the code as it opens ... to no avail

    about how to trap this error:
    any suggestions / directions on where to look / maybe a good previous post or article?

    ...came across a random article suggesting that i de-compile (?) (and then proceed to describe what seemed to be an obtuse method required to do so?) ...and then re-compile
    any thought on this ? (the project has been worked on fairly heavily over several years and has never been "de-compiled")

    as always, with much appreciation in ADVANCE,


    mark

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What is the code? The problem may be data related, a field being Null that never was before.

    Decompiling is a valuable tool in the toolbox. I haven't used it in quite a while but it's certainly something I'd try with an error that I couldn't track down.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,923
    So you are saying, you cannot put a breakpoint on the very first line in that form?
    Even to add a MSGBOX so you have something to start with?

    To decompile, all you need is to add the /decompile switch when opening access? I just have a shortcut set up to do mine.

    Code:
    "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" /decompile
    http://www.fmsinc.com/microsoftacces.../decompile.asp
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    never-mind.... found it ...thank you

    lesson learned:
    sometimes it is better to check when you see a blatantly misspelled word (name of a control) in a subroutine, than to presumed you had just dragged your elbows across the keyboard and caused it to be misspelled.

    (Q. why does a lesson learned ALWAYS take so much time ? =:-)

    yet again, thnx
    m.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,923
    Do you have Option Explicit at the top of every module?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    ...i "try" to be diligent (and mostly am)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 01-10-2020, 04:50 PM
  2. Application Defined Error
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 2
    Last Post: 08-06-2015, 06:31 AM
  3. Application-defined or object-defined error
    By SYFYLADY in forum Access
    Replies: 4
    Last Post: 03-05-2014, 05:25 PM
  4. Replies: 1
    Last Post: 03-14-2013, 12:39 PM
  5. Application-defined or object-defined error
    By hawkins in forum Access
    Replies: 6
    Last Post: 07-01-2011, 01:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums