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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeOwner, Developing Solutions LLCCommented:
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
Dale FyeOwner, Developing Solutions LLCCommented:
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
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Rey Obrero (Capricorn1)Commented:
try this

StartTime: TimeSerial(10,0,0)
0
Rey Obrero (Capricorn1)Commented:
or
StartTime: #10:00:00 AM#
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 FyeOwner, Developing Solutions LLCCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.