Solved

Cannot format field in report in date format

Posted on 2013-10-22
2
472 Views
Last Modified: 2013-10-22
I use a create table query to create a table from data in a form.
Two of the fields are date fields on the form, but when the table is created, these fields are stored in number format in the table. Then when I create a report from the table, the numbers are displayed in the report and I cannot format it in date format. There are only options to format as other variants of the number but not as a date.
Can anyone help please.
0
Comment
Question by:Fritz Paul
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39590812
In the textbox controls, just set the Format property to yyyy-mm-dd or similar (just manually type that into the format property).

It should automatically format the numbers to dates for you.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39590857
What SQL are you using to create the make-table?  Dates are actually stored as double precision numbers, so I can see how they might translate to a numeric field in  a make-table.  You might try explicitly typing those fields, something like:

SELECT Field1, Field2, cDate(yourTable.Field3) as Field3
INTO yourNewTable
FROM yourFormQuery
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

820 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