Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

dates

ResolvedVersion 2007

Kate has attended:
Access Introduction course
Access Intermediate course

Dates

I have a column of data which refers to date (dd/mm/yyyy hh:mm:ss) and I would like to create another column in the query which is just the date part (dd/mm/yyyy). Is this possible?

Thanks

RE: Dates

Hi Kate

Thank you for your question. Try this and see if it produces the results you are looking for:

Select your query and switch to design mode.
Clicking in the next free column in your query, in the Field row, give your new column a title eg short_date

add in a colon followed by the name of the exisiting field that contains the date you would like to reformat. So the full Field title for your new column becomes

short_date: [date]

where date is the name of the field you would like to reformat.

Press the enter key to commit the change then right click on the new field name you just entered and from the short menu choose Properties.

In the properties sheet that appears type in dd/mm/yyyy and press the enter key.

You can close the Properties sheet and run your query using the exclamation mark on the ribbon.

You should find your new field appears displaying the originaly date value but in your shorter date format.

I hope this helps - do let us know if you have any further questions.

Kind regards,
Andrew

RE: Dates

I have used fix instead as I want to return the date value as opposed to formatting differently.
Many thanks though,

Kate

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Using the Quick Access Toolbar in Access 2010

The Quick Access Toolbar is included in virtually every Office product, including Outlook 2010, Word 2010, Excel 2010, and PowerPoint 2010.

You will find the Quick Access Toolbar in the top-left side of the window. To begin, click the Customize button (it's the little black arrow at the end of the toolbar).

Simply click the commands you want to include.

Virtually any command can be added to the Quick Access Toolbar. Click the More Commands option and a new window will open from where you can browse the commands including those not on the ribbon.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.