Solved

Changing Text to Data automatically

Posted on 2000-03-01
1
154 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

773 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