Exception: Value cannot be null


I am working on capture a date from txt to excel, and there is an exception:

problem identified in this “IF”:

However, the date I need to capture is already been captured, as this:

this is my code:

Tricky thing is, I have used same code except differences in the variable for “Name Capture”, and it works good, the name also captured on the form in first image A1, and no error for that one.


how was it solved?