Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Make-Table Action query

Status
Not open for further replies.

eHigh

Programmer
Nov 25, 2002
43
US
In table design view I set the data type to date/time. But when running the make-table action query it changes the "date/time" data type to "text" data type.

When running the make-table action query can I force it keep the "date/time" data type?
 
The problem isn't in keeping the data type. Make Table queries delete the existing table and create a new one, so the problem is in making it create the correct data type.

Modify your Make Table query so that the source for the date/time column is of date type. The simplest way would be to change the Field: row to a CDate() expression. (I'm assuming all of the source rows have valid dates present.)

You could also use an Append query instead, since you have created the table ahead of time.

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top