Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default viewing SQL when MSQERY cannot attach to DB

I have a couple worksheets with complex queries where the database is no
longer available. All I need to do is to open up the query (MSQUERY) so I
can view the sql to recreate the query pointing to a new database. HOWEVER,
Msquery seems to require that I be ableto access the database before it will
open, thus allowing me to view the sql. how can I get around this msquery
behavior to see the sql (or just open)??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default viewing SQL when MSQERY cannot attach to DB

Sqlboy

http://www.dicks-clicks.com/excel/Ex...htm#ChangeConn

you can change the Connection and CommandText properties through code.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

SQLboy wrote:
I have a couple worksheets with complex queries where the database is
no longer available. All I need to do is to open up the query
(MSQUERY) so I can view the sql to recreate the query pointing to a
new database. HOWEVER, Msquery seems to require that I be ableto
access the database before it will open, thus allowing me to view the
sql. how can I get around this msquery behavior to see the sql (or
just open)??



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
how to attach doc.to an email? Pam B. New Users to Excel 1 February 15th 10 05:08 AM
Attach code MAX Excel Worksheet Functions 5 March 16th 09 11:11 PM
Attach a Help Text With A UDF! FARAZ QURESHI Excel Discussion (Misc queries) 1 March 7th 09 11:13 PM
attach files Mark V Excel Worksheet Functions 1 March 8th 07 03:42 AM
Can I attach a PDF in a cell? Genia Excel Discussion (Misc queries) 1 February 1st 07 02:39 PM


All times are GMT +1. The time now is 03:06 PM.

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"