Solved

Changing Text to Data automatically

Posted on 2000-03-01
1
147 Views
Last Modified: 2012-08-13
I have created a make table query , and within this query i have combined these three indivdidual fields cells days/month/years so that it is in one field cell.
The problem is this is in Text format and when run the make table query the date is still in text.
What i want to do is rather than having to manually change in the table design from text to date time format that i could do this automatically somehow via a macro or VB
0
Comment
Question by:job2cU
1 Comment
 
LVL 6

Accepted Solution

by:
simonbennett earned 70 total points
Comment Utility
Lets say your source table has 3 fields

Day  Month  Year

Your make table query should have a column like:

FullDate: =cdate(trim([Day]) & "/" & trim([Month]) & "/" & trim([Year]))

Which sould give the follwing result

Data: "01"  "11"   "2000"
Result: #01/11/2000#

HTH

Simon
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

9 Experts available now in Live!

Get 1:1 Help Now