Solved

Correct formatting for this control source?

Posted on 2011-02-18
2
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

729 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