Results 1 to 4 of 4
  1. #1
    jalal is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    17

    Clock on the form

    Hi

    Please someone help me what happed to this

    For a Date and Digital Clock display on my Form: in Access 2007
    I proceeded like this
    a). Placed a Label Control on the Form and named it myClock
    b) Set the appropriate Properties such as Font, Font Size, Bold, Text Alignment, etc.
    c) Set the Form's Timer Interval to 1000
    d) Placed the code listed below in the On Timer() Event of the Form


    Private Sub Form_Timer()
    [myClock] = Now()
    End Sub
    Still then the clock does not appear on the form
    What could be the problem
    jalal

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Instead of a Label, try a text box. I used text1

    Private Sub Form_Timer()
    Me.Text1 = Now
    End Sub

    interval of forms timer event is 1000 (ms)

  3. #3
    jalal is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    17

    clock on the form

    Hi

    I have used the text box

    The problem still persists.

    After doing all when the form is opened the cursor goes in to the box without any clock. may be it is due to screen colour.

    jalal

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Attached is my setup -- I am using acc2003.Click image for larger version. 

Name:	FormwithClock.jpg 
Views:	11 
Size:	105.4 KB 
ID:	6370Click image for larger version. 

Name:	FormWithClock_FormView.jpg 
Views:	11 
Size:	10.8 KB 
ID:	6371

Please reply to this thread with any new information or opinions.

Similar Threads

  1. digital clock in report Or Form
    By smahdih in forum Programming
    Replies: 1
    Last Post: 11-13-2011, 12:25 PM
  2. real time clock
    By krai in forum Access
    Replies: 1
    Last Post: 05-13-2010, 05:11 AM
  3. Analog clock
    By creativefusion in forum Programming
    Replies: 1
    Last Post: 02-10-2010, 05:39 PM
  4. Pop Up Clock and Date
    By SharonInGa in forum Forms
    Replies: 8
    Last Post: 04-14-2007, 01:34 PM
  5. clock control in access
    By kfoyil in forum Access
    Replies: 0
    Last Post: 12-02-2006, 01:38 PM

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