Results 1 to 6 of 6

Thread: [RESOLVED] VB6 Not Null problem

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    59

    Resolved [RESOLVED] VB6 Not Null problem

    I'm stuck with this one
    When I do the test it is not working
    When there is nothing in rsCard!Young1,rsCard!Young1 retuns Null it works
    When rsCard!Young1 returns somethings like 25 ore "25" it keeps skipping frmCard.txtnr1.Text = rsCard!Young1
    what am I doing wrong
    Code:
                  If rsCard!Young1 = Not Null Then
                     frmCard.txtnr1.Text = rsCard!Young1
                   End If

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Re: VB6 Not Null problem

    If you are just filling textboxes you can skip the null check and just append and empty string to the results.

    Card.txtnr1.Text = rsCard!Young1 & ""

  3. #3

  4. #4
    New Member NRamakrishna's Avatar
    Join Date
    Jun 2013
    Location
    Banglore
    Posts
    4

    Re: VB6 Not Null problem

    use IsNull Function

  5. #5

  6. #6

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    59

    Re: VB6 Not Null problem

    Thanks guys both answers work

Posting Permissions

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



Click Here to Expand Forum to Full Width