Kurt111780
Technical User
Hello,
This should be easy but I can't find the answer anywhere.
Here is my code:
txtAddedDateTime.Text = (string) objRdr["addedDateTime"];
This does not work because the data is stored in an access database as date time data type. I keep getting this error on that line:
System.InvalidCastException: Specified cast is not valid.
How do I modify my code for a date field in access?
Thanks,
Kurt
This should be easy but I can't find the answer anywhere.
Here is my code:
txtAddedDateTime.Text = (string) objRdr["addedDateTime"];
This does not work because the data is stored in an access database as date time data type. I keep getting this error on that line:
System.InvalidCastException: Specified cast is not valid.
How do I modify my code for a date field in access?
Thanks,
Kurt