Can anyone please help me. I am trying to assign a date from my database to a date picker control. I tried
DatePickerName.value = rs.fields("fldBeginDate".value
but the date remains the same. Please help!
Thank You!!!
Does rs.fields("fldBeginDate".value contain a legitimate date format?
Try
=CDate(rs.fields("fldBeginDate".value)
or
=DateValue(rs.fields("fldBeginDate".value)
If this doesn't work then I would say that the field doesn't contain a date, or that other code following this code (in the same proceedure or in a event somewhere else) is causing another change to the set value or defaulting back.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.