Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 convert from date to string in ms access

Author  Topic 

sqlnewbie82
Starting Member

11 Posts

Posted - 2007-10-22 : 11:44:43
i am using ms access as my database and i have one field on date/time data type, i want to convert this field into a type string so that i can concantenate it with another value. so is there a function that converts date/time format to string format. i found out that convert function does not work since i am using ms access. any suggestions
this is my sql statement

select Start_date + ' ' + Package_listingNo as package_deal from 12Package_Listing";

this statement works fine if start_date is of type text, but does not work when it is of type date/time. i need this field to be of date/time otherwise other functionalities wont work

help


SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-22 : 11:54:16
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91394

use Format function.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -