I updated a few lines of code in my Visual Studio Application which involves the DatePicker tool.
Here is the code:
If dtpReceivedDate.Value < dtpCVDate.Value Then MsgBox("CV Date is greater than Received Date.", MsgBoxStyle.Information, "Date Error") Exit Sub Else Call SaveCV() End If Basically, the program will not save (Call SaveCV) any information if the dtpReceivedDate (DatePicker) is less than dtpCVDate (DatePicker). It works when I tested it in my development machine where Visual Studio is installed. I build the solution and copy the exe file to another PC where the application is deployed and being used. My problem is this, the condition in the code seems to fail when both the DatePicker has the same value (it displays the Messagebox). It should proceed in the next line of code because the values of the DatePickers are equal. What could have gone wrong? Thanks in advance.