Using checkbox to show date/time...please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flyboy3300
    New Member
    • Dec 2009
    • 3

    #1

    Using checkbox to show date/time...please help

    I am trying to set up a form in db with items that have to be completed and when completed they check a "check box" and then I would like that to show a date/time in a text box. I have tried to use macros to do this with no luck...please help
  • hjozinovic
    New Member
    • Oct 2007
    • 167

    #2
    hi flyboy,

    Are you trying to write date and time at the moment check box is clicked?
    you can do that in after update event of the checkbox.
    write a code there similar to:
    Code:
    If Me![CheckBoxName]=True Then
    Me![TextBoxName] = Date
    End If

    Comment

    • flyboy3300
      New Member
      • Dec 2009
      • 3

      #3
      Thanks for you reply, I finally figured it out by another method, this is what I used;
      If Me.c1a Then
      Me.vp1a = Now
      Else
      Me.vp1a = Null
      End If

      Thanks

      Comment

      • hjozinovic
        New Member
        • Oct 2007
        • 167

        #4
        flyboy,
        I'm glad you made. Good luck with you DB.
        h.

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Your duplicate posting of this question/problem has been deleted! Please refrain from this prohibited behavior in the future.

          From FAQs

          Do Not Double Post Your Questions

          Double posting is where you start a thread on a topic and then for some reason start another thread on exactly the same topic in the same forum. Please do not do this because
          • It makes it very hard for people to answer you especially if there are answers happening in all the threads you have started because they have to read 2 or more threads in order to see what has already been said.
          • It swamps the forum with your problem resulting in less attention for the other threads.

          If you feel for some reason that you post has been overlooked (for instance it hasn't had any replies) please do not repost the question. Post a message to the thread you started, saying simply “bump” and this will move it back to the top of the thread list for the forum.

          Thank you for your attention in this matter.

          Linq ;0)>

          Moderator

          Comment

          Working...