Hi
I have been searching over the internet to find an answer for my question, but no luck so far.
I have an access table with a date/time field and the required property set as No.
What I am trying is to import a multi line text file to this db using VB. the code split the data to records and insert to the table. but when there is a null value for the date field it says data conversion error.
I want the code line to modify and say that
if isnull then null else field value.
But it is not happening. If i use the above line with VBNull then it inserts 00:00:00 as the value. But I want the field empty if there is no value. I tried so many things but no luck. Hope someone can help
Thank you and Regards
I have been searching over the internet to find an answer for my question, but no luck so far.
I have an access table with a date/time field and the required property set as No.
What I am trying is to import a multi line text file to this db using VB. the code split the data to records and insert to the table. but when there is a null value for the date field it says data conversion error.
I want the code line to modify and say that
if isnull then null else field value.
But it is not happening. If i use the above line with VBNull then it inserts 00:00:00 as the value. But I want the field empty if there is no value. I tried so many things but no luck. Hope someone can help
Thank you and Regards
Comment