Date Picker Control Not Displaying Proper Date (Access 2003)

Posted by JPM on Stack Overflow See other posts from Stack Overflow or by JPM
Published on 2010-05-18T22:38:45Z Indexed on 2010/05/18 23:10 UTC
Read the original article Hit count: 276

Filed under:
|

Hi everyone,

I just have a quick question. I am maintaining an app for my summer co-op position, and a new requirement came down today where the user requested to have a date control added to a form to mark the date of when an employee is "laid off". This control is enabled/disabled by a toggle button, and has its control source bound to a field that I added in the database. All the functionality has been added and tested, but....

The issue I am having is that the date picker is on a tab control (the 2nd page) and I am having problems trying to get the control to display the date that is stored in the field I created. I know the control is storing any changes made using it, but since the user asked to move the control over to the 2nd tab (it was on the first), it just shows today's date, not the date entered using the control. To make things a little more strange, if I place the control anywhere except the tab control, it seems to be working fine. I've even placed a textbox on the tab and set its control source to the database field, and it displays just fine. What gives?

And I have registered the .ocx with Access, and as I mentioned before, the actual database is storing the data. Just not displaying it. Any ideas as to what I am doing wrong?

© Stack Overflow or respective owner

Related posts about ms-access

Related posts about datepicker