dtpicker problem with dtptime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rudeman76
    New Member
    • Oct 2007
    • 58

    dtpicker problem with dtptime

    Hi,

    I have a form that is a daily log. I use dtpicker for the user to enter in the time. At form load, I set the time as the current time. The problem i am having is when the user changes the time and goes to the next step, it does not take the new time, it uses the current time. For example, if it is 12:30pm and the user enters in 12:15pm, it uses 12:30 as the time. i am using dtpicker.value to get the info. I am new to using dtpicker and not sure what i am doing wrong. i have the format set to 2 - dtptime. If someone can help me or has a better idea on how to enter in time it would be helpful. thank you in advance

    Rude
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    i think you have set the value of dt picker to current time . Is that the case.

    Comment

    • rudeman76
      New Member
      • Oct 2007
      • 58

      #3
      i set it at form load.

      Code:
          txtTime.MinDate = "00:00"
          txtTime.MaxDate = "23:59"
          txtTime.Value = Format(Time, "Short Time")
      the min and max lines i added to see if that was my issue. It still didnt work.

      Is this wrong, the way i did it?

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        i dont think textboxes have mindate and maxdate properties .

        Comment

        • rudeman76
          New Member
          • Oct 2007
          • 58

          #5
          sorry,
          the txttime is my dtpicker. i didnt explain that

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            the third line is creating the problem . instead of taking user entered value that is taking system time.

            Comment

            • rudeman76
              New Member
              • Oct 2007
              • 58

              #7
              awesome, works perfect now. Thank you very much

              Comment

              Working...