Solved

Changing Text to Data automatically

Posted on 2000-03-01
1
152 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
ID: 2573379
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
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…
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

911 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

20 Experts available now in Live!

Get 1:1 Help Now