string literal for half-a-second

Is there an acceptable string literal in the VBA (Access 2013) TimeValue function to express fractions of a second?
In this particular case a Half-Second.

TU_HALF_SECOND = TimeValue("00:00:00.5")         ' Type mismatch error

As a work-around I have calculated it mathematically from a value of one-second:

   TU_HALF_SECOND = TimeValue("00:00:01")         '  The smallest (non-zero) literal I have found that works
   TUVal_HALF_SECOND = CDbl(TU_HALF_SECOND)
   
   TUVal_HALF_SECOND = TUVal_ZERO_SECONDS + (TUVal_HALF_SECOND - TUVal_ZERO_SECONDS) / 2  
                                                                      '  Zero seconds obtained via TimeValue("00:00:00")    ::     I'm aware that this may be redundant
   TU_HALF_SECOND = CDate(TUVal_HALF_SECOND)

So this is not an emergency, I'm just curious.
Ross WiseInformation Technology Support CoordinatorAsked:
Who is Participating?
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.

Jeffrey CoachmanMIS LiasonCommented:
I think this my be relavent.

http://www.devx.com/dbzone/Article/39046

This was a popular question a few years ago, but I think interest faded when people discovered that they rarely need this level of precision, ...and the amount of work to get it, ...was not really worth it...

Hope this helps

JeffCoachman
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
Gustav BrockCIOCommented:
Your workaround is correct, though a little long-winded as you can calculate it directly:

    TU_HALF_SECOND = TimeValue("00:00:01") / 2

If you need more that this single value or calculations on split seconds, you can use the code provided by Jeff.

/gustav
0
Ross WiseInformation Technology Support CoordinatorAuthor Commented:
Thank you both.
0
Gustav BrockCIOCommented:
You are welcome!

/gustav
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.

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.