Starr Duskk
asked on
tableadapter date column checking for null
When I try to retrieve if a date value is nothing, it errors saying the value is DBNull.
If Not member(0).M_Creation_Date = Nothing Then _
creationDate = member(0).M_Creation_Date
if I do this:
If Not member(0).M_Creation_Date Is DBNull.Value Then
It says Is requires operands that have reference types. what do I put there to check if a date is null? thanks.
If Not member(0).M_Creation_Date = Nothing Then _
creationDate = member(0).M_Creation_Date
if I do this:
If Not member(0).M_Creation_Date Is DBNull.Value Then
It says Is requires operands that have reference types. what do I put there to check if a date is null? thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.