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
Microsoft Access
Last Comment
pdvsa
8/22/2022 - Mon
Dale Fye
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
pdvsa
ASKER
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
Dale Fye
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
.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