Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6572181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:58:24+00:00 2026-05-25T14:58:24+00:00

I want my users to select only time for datetime filed in access 2007.

  • 0

I want my users to select only time for datetime filed in access 2007. I found that there’s a built-in date control, but cannot find time control. Does anyone know if there’s a way to have a time picker control?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:58:25+00:00Added an answer on May 25, 2026 at 2:58 pm

    For entering time values, a specialized control doesn’t offer the user much more, if any, convenience than directly entering time values into a text box bound to a Date/Time field, IMO.

    For 1:30 PM, she can just enter 1:30p, and it will be accepted appropriately. She could also enter that time as 13:30 if she prefers.

    If your concern is preventing the user from entering a (non-zero) date value along with the time, you can discard the date portion in the text box’s after update event. Users tend to catch on real fast when the date portions of values they enter are discarded.

    Private Sub txtTimeOnly_AfterUpdate()
        Me.txtTimeOnly = TimeValue(Me.txtTimeOnly)
    End Sub
    

    Actually that will convert the date portion to VBA’s day zero, #1899/12/30#. But that’s the best you can hope for to store a “time only” value because Date\Time values always include a date in both VBA and the database field type.

    If you want more assurance the field will store time values (with #1899/12/30# as the date), you can set a validation rule on the table:

    IsNull([time_only_field]) Or DateValue([time_only_field])=CDate("1899/12/30")
    

    If you still feel you need a time picker control for this, search the web to see if anyone has created one. I would avoid an ActiveX control because they wind up creating version problems.

    Or I suppose you could create your own custom time picker with combo boxes: one for hours; one for minutes; and, if needed, one for seconds. In the combo after update events, build your time value from those pieces and store them in a control bound to the time_only_field. That control needn’t be editable by the user, but making it visible would allow them to see the completed value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have use the DateTime control that show only time in my design view
CAST() seems to only work for BINARY,CHAR,DATE;DATETIME,DECIMAL,TIME,SIGNED,UNSIGNED. I need to convert a hex string
I want to develop a online karaoke site where users can select a video
i have users table and i have posts table i want select from users
I have a right outer join, that almost does what I want... SELECT users_usr.firstname_usr,
i have list of rows that user select and i want to delete them,
We want to show a hint for a JList that the user can select
I want to show a dialog that will allow the user to select a
I have a user that want to be able to select a textbox and
I have a listbox that you can select users in. To the left of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.