Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It's Dirty Time! (A2K)

    This is the buildup to the question.

    To identify date and time a record has been created, a field is defaulted to: now()
    To identify date and time a record has been modified, a field is defaulted to: now

    Within a specific record I have 3 different date fields that have to default to the
    date and time that a relative yes/no field was triggered:

    Yes/No Field A
    Cheers,
    Andy

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: It's Dirty Time! (A2K)

    You can't do this in the table itself, you have to do this in a form based on the table. In the After Update event of the check box bound to Field A, set Date Field A to Now:

    Private Sub chkFieldA_AfterUpdate()
    Me.txtDateFieldA = Now
    End Sub

    where chkFieldA is bound to Field A and txtDateFieldA is bound to Date Field A. Similarly for the other fields.

  3. #3
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: It's Dirty Time! (A2K)

    Hans,
    When is it exactly that you eat and sleep? Thanks very kindly for the exact answer needed. I had worked around it, but hadn't hit this particular nail on the head like you did. Again, thanks muchly,
    Cheers,
    Andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •