How To Format Microsoft Access Date/Time Values to Show the Date Only Unless a Time is Specified

preview_player
Показать описание
In this video, I'll show you how to format a list of date/time values so that they will show a time if needed, or just show the date value if the time portion is midnight.

Corinne from Henderson, Nevada (a Platinum Member) asks: I built a database where I have a form that shows upcoming appointments and tasks. Some of the appointments have times, which I want to see. However most of items are just tasks that can be done any time that day. If I format the field to show times, they all show up as being at midnight, which doesn't look good. Is there any way to hide the time portion of the date if it's at midnight? Plus, I want to see just hour and minute, not seconds. General Date works, but it shows seconds, and capital AM/PM. I'd like lowercase, if possible.

Silver Members and up get access to an Extended Cut of this video. Members will see how to format a single form date/time field to show the date only unless a time is specified. We'll use a little VBA, the OnCurrent and AfterUpdate events.

Gold Members and up will get a special Double-Extended Cut video. You will see how to format the date/time fields in a continuous form!

SILVER MEMBERS VIDEO:

GOLD MEMBERS VIDEO:

BECOME A MEMBER:

LEARN MORE:

LINKS:

COURSES:

FREE TEMPLATE DOWNLOADS:

ADDITIONAL RESOURCES:

KEYWORDS:
microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, format a date and time field, date/time format, DateOnly function, date without time,

QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Рекомендации по теме
Комментарии
Автор

Hi Sir, Please tell me how can i convert a Date format (09 SEP 22 ) to Words with code. Is there any video available ? If not please make a video on this topic. Thank you a lot, sir

ManiCreativeArts
Автор

How can you solve a problem if my database shows the error "the database engine could not lock the because it is being used by another person

kevinmwandi