Results 1 to 2 of 2

Thread: Dbnull

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    Dbnull

    job_expiration_date can be null...this code is giving me a DBNULL error...anyone know the proper way i can do this or do I have to write two separate sql statements?

    VB Code:
    1. If objDR("job_set_up_date") <= tranPeriod And (objDR("job_expiration_date") >= tranPeriod Or (objDR("job_expiration_date") Is DBNull.Value)) Then
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Lively Member
    Join Date
    Jan 2003
    Posts
    71
    I think you should test for null in the statement first, not last.

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