DTPicker read only error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psuaudi
    New Member
    • Oct 2006
    • 27

    #1

    DTPicker read only error

    I have a form that I was creating and I wanted to use the microsoft date and time picker. in the On_Load event for the form, I want to set the date and time picker value to Now()

    Private On_Load()
    dtpicker.value = now()
    end sub

    However, in the form that I was creating, it says that the dtpicker is read-only and cannot be changed.

    If I create a blank form and insert a date and time picker, and use the on_load even above, it works fine. I've checked and cannot see what settings I might have different between the two forms...

    It looks like others have had this error before, but that there was no clear fix. Am I out of luck?

    Thanks
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Did you try the OnOpen event instead ?

    Nic;o)

    Comment

    Working...