Solved

Correct formatting for this control source?

Posted on 2011-02-18
2
210 Views
Last Modified: 2012-05-11
Hi there,

What is the correct formatting for this control source?

="Date: " & [Date] & " Time: " & [Time]

I want to add formatting so the date is dd/mm/yyyy & the time is hh:mm:ss

At the moment the current control source returns

Date: dd/mm/yyyy hh:mm:ss & Time: dd/mm/yyyy hh:mm

Thanks

Chris
0
Comment
Question by:smods
2 Comments
 
LVL 9

Accepted Solution

by:
borki earned 250 total points
ID: 34924789
Are [Date] and [Time] two distinct fields of datatype Date/Time?

="Date: " & Format([Date], "dd/mm/yyyy") & " Time: " & Format([Time], "HH:Nn:SS")

Or is there a single filed and you just want to display it in the above format?

="Date: " & Format([DateValue], "dd/mm/yyyy") & " Time: " & Format([DateValue], "HH:Nn:SS")
0
 

Author Comment

by:smods
ID: 34924803
Two distinct fields my friend!

Thank you very much :)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now