+ Reply to Thread
Results 1 to 4 of 4

Invalid use of null error

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    883

    Invalid use of null error

    Hi guys

    I am getting an error message at the following line of code. Any help would be much appreciated.
    Please Login or Register  to view this content.
    Thanks
    Aman

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Invalid use of null error

    Aman,

    Where to start;
    - is the cn object valid?
    - is the rs object valid?
    - is a record returned by the sql statement?

    If you answered all questions with yes then try

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    883

    Re: Invalid use of null error

    Thanks Ollie. It worked perfectly.

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Invalid use of null error

    You are welcome. May I please ask you to mark this thread as solved and remember that you can click the star icon to add to my reputation if you are happy with my contribution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run-time error 94; Invalid use of Null
    By williams485 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 09:36 AM
  2. [SOLVED] VBA - runtime error 94, invalid use of null
    By arneld in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2012, 06:46 PM
  3. Run Time Error: 94 (invalid use of null)
    By jason_kelly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 02:06 PM
  4. Invalid use of null error
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2011, 04:41 AM
  5. Run Time Error '94' Invalid use of null
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-28-2008, 05:44 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1