goldfische
Programmer
Hello,
I have a strange problem with a Date picker, I have a couple on a form that are all the same except for the names. The checkbox is enabled on all of them and the coding is all the same except for their names. One of the DTPickers keeps giving me an error after I add a new recordset, it is an Invalid property value, Even if I dont even use it to store the date. All the field properties in the access 2000 database are set the same.
I set temp after my sql statement which is running fine. The error occurs when I go back to view the selected recordset I just added. Has anyone come across something similar to this? I am using VB 6.0 with the service pack 5. Thank you if you can give me any input and sorry for the long post
Here is the code I have:
Set Temp = AdodcDates.Recordset
If IsNull(Temp!DateTwo) Or(Temp!DateTwo) = "" Then
DTPDateTwo.Value = ""
Else
DTPDateTwo.Value = Temp!DateTwo
End If
I have a strange problem with a Date picker, I have a couple on a form that are all the same except for the names. The checkbox is enabled on all of them and the coding is all the same except for their names. One of the DTPickers keeps giving me an error after I add a new recordset, it is an Invalid property value, Even if I dont even use it to store the date. All the field properties in the access 2000 database are set the same.
I set temp after my sql statement which is running fine. The error occurs when I go back to view the selected recordset I just added. Has anyone come across something similar to this? I am using VB 6.0 with the service pack 5. Thank you if you can give me any input and sorry for the long post
Here is the code I have:
Set Temp = AdodcDates.Recordset
If IsNull(Temp!DateTwo) Or(Temp!DateTwo) = "" Then
DTPDateTwo.Value = ""
Else
DTPDateTwo.Value = Temp!DateTwo
End If