Results 1 to 3 of 3
  1. #1
    Delta729 is offline Advanced Beginner
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Los Angeles
    Posts
    95

    vba to show estimated time in text box

    I hope this makes sense. I just got a request to add a new text box to a form called "EstimatedDuration" and trying to a command button that when clicked, it will insert 30 minutes or #00:30:00" into the box. I'll wind having 5 or six buttons with 30 minutes, 1 hour, 1.5 hours, etc. Basically, this will be used for new projects in my database and for management to click one of the buttons to add an estimated time durations of how long the "think" the project will take to complete.



    I'm sure this is really simple, but I'm not much of a vba guy.

    Any help would be appreciated.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,953
    Instead of 5 or 6 buttons, could use a combobox or listbox that lists the time choices. Bind to field and selected value will be saved. No code needed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Delta729 is offline Advanced Beginner
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Los Angeles
    Posts
    95
    Ya, good idea. The manager wanted to click a button, but I'm sure they won't have a problem with a combo box.

    Thanks.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-10-2014, 03:14 AM
  2. Replies: 5
    Last Post: 07-24-2014, 07:54 AM
  3. Replies: 3
    Last Post: 12-22-2012, 05:33 PM
  4. Show current Time
    By dada in forum Programming
    Replies: 5
    Last Post: 05-03-2012, 04:32 AM
  5. How to show current vacation time
    By Brian62 in forum Forms
    Replies: 1
    Last Post: 06-24-2011, 04:34 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