Results 1 to 4 of 4
  1. #1
    Moekandu is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2011
    Location
    Phoenix, AZ
    Posts
    2

    IsNull not working...

    This is a weird one, and I've never seen this kind of behavior.



    Code:
    ...
    If IsNull(SearchRST.Fields(2)) Then
        SuccessBOOL = False
        Debug.Print "Null!"
    Else
        CompareARY = ParseStringCRLF(SearchRST.Fields(2))
        For j = 0 To LineLimitINT
        ...
    When the IsNull function returns True, it doesn't flow to the true section, instead it keeps jumping to the Else.

    In the immediate window, I can type:

    Code:
    ? isnull(SearchRST.Fields(2))
    True
    And I get the correct response. Why is the program not flowing correctly? Am I crazy?

    Thanks for your help.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Start by *importing* everything to a new fresh db and see if the problem follows. http://www.btabdevelopment.com/ts/impnew

  3. #3
    Moekandu is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2011
    Location
    Phoenix, AZ
    Posts
    2

    Thanks!

    That worked.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Go ahead and use the Thread Tools and mark this thread as Solved.

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

Similar Threads

  1. Chart not working
    By Drew in forum Reports
    Replies: 3
    Last Post: 09-22-2010, 01:09 PM
  2. Query using IIf(IsNull) expression
    By jmartin in forum Queries
    Replies: 3
    Last Post: 12-18-2009, 04:19 PM
  3. 07 Switchbox Not Working! - please help
    By techexpressinc in forum Access
    Replies: 16
    Last Post: 05-05-2009, 09:36 AM
  4. Why isn't this working?
    By adiecidue in forum Queries
    Replies: 4
    Last Post: 04-27-2009, 10:29 AM
  5. IsNull question
    By Simon Sweet in forum Access
    Replies: 4
    Last Post: 12-22-2007, 04:33 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