Start Time

Experts, I have a query.  How can I set a field to say 10am?  ie Start Time: (this field needs to be 10am)

thank you
pdvsaProject financeAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Commented:
or
StartTime: #10:00:00 AM#
0
 
Dale FyeCommented:
If you set the field to a date/time data type, you can use the value:

.416666667

This represents 10/24 ths of a day.  If you look at the data in the field, without setting the format to one of the Time formats, it will likely display:

12/30/1899 10:00 AM

Because the integer portion (in this case zero) represents days from 12/30/1899
0
 
pdvsaProject financeAuthor Commented:
Dale:  I am in design mode in a query.  The field is not from a table and I assume you are referring to the field properties in the table.  Not sure if I follow correctly though.

please see pic:  thyis might explain it better

pic in query design
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Dale FyeCommented:
StartTime: 10/24

StartTime: .416666667

Then right click on the column header for that column (narrow bar between the grid and the horizontal scroll bar associated with the top part of the query design window) and set the Format property of that column to Short/Medium/Long time
0
 
Rey Obrero (Capricorn1)Commented:
try this

StartTime: TimeSerial(10,0,0)
0
 
PatHartmanCommented:
Or
#10:00#
0
 
Rey Obrero (Capricorn1)Commented:
the query will still force it to display #10:00:00 AM#  if you use #10:00#
0
 
Dale FyeCommented:
I guess I was making it harder than it needed to be, must have been a late afternoon brain fart!
0
 
pdvsaProject financeAuthor Commented:
That was it.  thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.