Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel ODBC Query

There are many Microsoft Excel ODBC Query files. I am attaching one as an
sample. They could be edited with Microsoft Query or with Notepad. What the
files contain is SQL code; each file has only a few lines.

My task is to open each files, change one word, then close it. Specifically,
I need to replace the string "Database 2003.mdb" with "Database 2004.mdb".
My challenge is that there are several hundreds of them, which not only make
my task tedious but also make it impossible to avoid error.

Is there a quick way to do it?

Thanks in advance

Hong




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel ODBC Query

http://support.microsoft.com/support...eio/fileio.asp
File Access with Visual Basic® for Applications

should show you how to open and modify text files.

--
Regards,
Tom Ogilvy

H. Zhu wrote in message
...
There are many Microsoft Excel ODBC Query files. I am attaching one as an
sample. They could be edited with Microsoft Query or with Notepad. What

the
files contain is SQL code; each file has only a few lines.

My task is to open each files, change one word, then close it.

Specifically,
I need to replace the string "Database 2003.mdb" with "Database 2004.mdb".
My challenge is that there are several hundreds of them, which not only

make
my task tedious but also make it impossible to avoid error.

Is there a quick way to do it?

Thanks in advance

Hong





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
odbc error on Excel query into database flowry Excel Discussion (Misc queries) 2 November 6th 08 09:26 PM
how to access databases from excel using ms query and odbc? Nabin Excel Discussion (Misc queries) 0 October 11th 06 07:32 AM
msquery odbc -- excel repeats query on return [email protected] Excel Discussion (Misc queries) 0 April 3rd 06 06:22 PM
Excel query via ODBC cuts values escelinen Excel Discussion (Misc queries) 1 January 23rd 06 05:40 AM
EXCEL AND ODBC AND QUERY Gary B[_3_] Excel Programming 1 August 5th 03 02:39 AM


All times are GMT +1. The time now is 11:45 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"