PC Review


Reply
Thread Tools Rate Thread

Date format on exporting query to csv file from access 2007

 
 
Matt
Guest
Posts: n/a
 
      15th Feb 2010
Can any one suggest a solution??

I have a query which pulls some data and adds a date value, what I need to
do is export the query results to a csv file with the date as yyyymmdd I have
tried format(date(),"yyyymmdd") but it appears format is no longer available
in access 2007 queries. Is there a new approach to this that will achieve the
same result??

Any help appreciated
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      15th Feb 2010
Matt wrote:

> Can any one suggest a solution??
>
> I have a query which pulls some data and adds a date value, what I need
> to do is export the query results to a csv file with the date as yyyymmdd
> I have tried format(date(),"yyyymmdd") but it appears format is no longer
> available in access 2007 queries. Is there a new approach to this that
> will achieve the same result??
>
> Any help appreciated


If you're getting a message that Format() is not recognized then you have a
references problem. The Format function certainly still works in 2007.

 
Reply With Quote
 
Matt .
Guest
Posts: n/a
 
      17th Feb 2010
Rick, thankyou for the reply, my syntax in the query is

final_date: Format(Date(),"yyyymmdd")

I have used the exact same syntax in access 2003 with no issues is there something I'm missing

The message I get is:
"You omitted an operand or operator, you entered and invalid comma, or you entered text without surrounding it in quotation marks."

Any help is appreciated



Rick Brandt wrote:

Matt wrote:If you are getting a message that Format() is not recognized then
15-Feb-10

Matt wrote

If you are getting a message that Format() is not recognized then you have
references problem. The Format function certainly still works in 2007.

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Creating a WPF Custom Control
http://www.eggheadcafe.com/tutorials...ustom-con.aspx
 
Reply With Quote
 
Matt .
Guest
Posts: n/a
 
      17th Feb 2010
Discovered the cause,

In regiional settings - standard formats - customise

I had changed the default filed seperator from a "," to a "|" access 2003 seems to cope with this fine but access 2007 doesn't like it when it comes to running butil in functions there may be a way round this but for a now I have changed it back

hope this helps some one wasting hours trying to work out in the future

Thanks again for you help Rick



Matt . wrote:

Syntax
17-Feb-10

Rick, thankyou for the reply, my syntax in the query is

final_date: Format(Date(),"yyyymmdd")

I have used the exact same syntax in access 2003 with no issues is there something I'm missing

The message I get is:
"You omitted an operand or operator, you entered and invalid comma, or you entered text without surrounding it in quotation marks."

Any help is appreciated

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Putting Twitter Realtime Search to Work
http://www.eggheadcafe.com/tutorials...-realtime.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting Query from Access 2007 to Excel 2007 AMW0830 Microsoft Access 4 7th May 2010 05:02 PM
Exporting Access 2007 Date to Outlook 2007 Contacts news.microsoft.com Microsoft Access External Data 0 14th Apr 2009 05:43 PM
Help exporting URL format to Excel from Access Query Dave Microsoft Access Queries 1 20th Jun 2008 02:50 AM
Exporting report out in Access 2003 format from Access 2007 =?Utf-8?B?UGV0ZQ==?= Microsoft Access External Data 1 26th Jul 2007 03:50 PM
Problem with date/time field when exporting query as dBASE file =?Utf-8?B?bHBydWV0dA==?= Microsoft Access External Data 0 19th Jan 2005 07:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 PM.