Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Krish
 
Posts: n/a
Default Microsoft Query syntax

I am trying to create a Pivot table in Excel, using Microsoft Query linking
to SQL database. SQL stores the date as Date/Time. It becomes impossible to
group in Excel using Pivot Table, by date/time. I want to create a record in
Microsoft query using the date field, but convert to Date only as dd/mm/yyyy
and retain the format as Date and not as Text. I have tried Left(Date,11)
and Convert(VARCHAR,1,101), none of them work. Could someone help me with
the correct syntax. Microsoft query does not recognize MID.

Thanks

Krish


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excell VS Office Cathyandrea Excel Discussion (Misc queries) 1 September 19th 05 07:02 AM
Syntax Error - Using Microsoft Query and ODBC link to a table James T Excel Discussion (Misc queries) 0 August 31st 05 02:18 AM
Any alternative to Microsoft Query? madeqx Excel Discussion (Misc queries) 2 June 15th 05 08:57 AM
Microsoft Query Excel GuRu Excel Discussion (Misc queries) 4 January 19th 05 07:07 PM
Microsoft Query Help Patti Excel Worksheet Functions 4 December 25th 04 09:54 AM


All times are GMT +1. The time now is 10:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"