Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
quartz wrote ...
Thanks, I will give this a try... Quartz, The examples posted by keepITcool use Excel rather than Oracle as the data source. A Jet driver/provider must be used for this syntax to work. If your source database is non-Jet, you will need to be able to query it using odbc and thereby use Jet's 'pass through' query functionality. I don't have Oracle, so here's an example that uses an odbc connection to a SQL Server database: SELECT fname, minit, lname INTO [Text;Database=C:\My Folder\;].MyFile#txt FROM [ODBC;Driver={SQL Server};SERVER=MYSERVER;DATABASE=pubs;UID=***;Pwd= ***;].employee ; keepITcool, I see you used the fso to delete the existing text file. Because in the Jet context a file is a table, you may use the DROP TABLE syntax e.g. DROP TABLE [Text;Database=C:\My Folder\;].[MyFile#txt] ; Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
text string: "91E10" in csv file auto converts to: "9.10E+11" | Excel Discussion (Misc queries) | |||
"Control" plus "click" doesn't allow me to select multiple cells | New Users to Excel | |||
.csv drops "0" when saved, even if file was set as "text". | Excel Discussion (Misc queries) | |||
METHOD "SELECT" OF OBJECT '_WORKSHEET' FAILED when opening a file | Excel Programming | |||
Using "Cells" to write "Range("A:A,H:H").Select" | Excel Programming |