Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,939
    If you do not want anyone to manually change the time of a text box, set the enabled property to YES and the Locked property to NO.
    shouldn't that be Locked=Yes?

  2. #17
    andr3ahh is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    8
    Quote Originally Posted by ssanfu View Post
    In your table, you have fields
    Allertamento (ATT)
    Partito (Part)
    Target (TARG)
    Target_Ospedale (T_H)
    Ospedale (OSP)
    Libero (LIBERO)

    Form "Richieste" is in Continuous Forms view and each record has 6 date/time fields.
    The label must be bound to the text box.

    Lets say the field name is "Allertamento" and the name of the bound text box is "ATT".
    (The name of the field in the table is "Allertamento" and the name of the Text box is "ATT")
    In the double click event of ATT, the code would be
    Code:
    Private Sub ATT_DblClick(Cancel As Integer)
        Me.ATT  = Time()
        Me.Refresh
    End Sub
    For the field name "Partito", the bound text box name would be "PART".
    In the double click event of "PART", the code would be
    Code:
    Private Sub PART_DblClick(Cancel As Integer)
        Me.PART = Time()
        Me.Refresh
    End Sub
    The rest of the time fields are set up with the same code.


    If you do not want anyone to manually change the time of a text box, set the enabled property to YES and the Locked property to NO.
    I've already tried that. It says "Method or data member not found"...

  3. #18
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Ajax View Post
    shouldn't that be Locked=Yes?
    Ack!! I hate when I do that .... good catch Ajax. Thanks for correcting me.

    (and I edited the post)

  4. #19
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by andr3ahh View Post
    I've already tried that. It says "Method or data member not found"...
    Don't know what to say. It worked for me......
    Or maybe I still don't understand what you want.....

    You could post your dB with just a few records.........

    Try this demo.
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 07-06-2015, 01:47 AM
  2. Replies: 2
    Last Post: 10-31-2012, 11:52 AM
  3. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  4. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums