• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

Short time auto-generated

I have an application people are using the 'scan into' work.

I want to store hours and minutes only, but am using "default value" of time$(); which returns long value (hh:mm:ss).  The reason it is important to not record seconds is that I want to ensure that a person isn't able to scan in twice (accidentally), so time is part of the key field.

how can I store a default value of hh:mm only?
0
TIgerV
Asked:
TIgerV
1 Solution
 
clarkscottCommented:
= format(YourValue, "hh:nn")

Scott C
0
 
TIgerVAuthor Commented:
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now