Basically I have a Access DB...
I try and pull a record from 1 table and Insert into another. When I try and Insert I get a Data Type Mismatch Error. I believe because one field is System.DBNULL. So the Question I have is how do I check the field to see if its a DBNULL then Change the Value to say 0 or something that wont crash my program.
How do I say?
As always I love this forum, you guys are great... and as my experience gets better I hope to return the help to the next person.
I try and pull a record from 1 table and Insert into another. When I try and Insert I get a Data Type Mismatch Error. I believe because one field is System.DBNULL. So the Question I have is how do I check the field to see if its a DBNULL then Change the Value to say 0 or something that wont crash my program.
How do I say?
Code:
If Variable = DBNULL Then Varible = 0 End IF