Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't seem to be able to retrieve data from temporary tables. Is
something missing from my code? I can select the top ten form the table and can select it into the temp table #lb, but I get nothing when I try to retrieve the data from the temp table. Can anyone help? Sub EmailSQLs() Dim qt As QueryTable sqlstr = "select top 10 * into #lb from dim_email" + _ " select * from #lb" connstring = _ "ODBC;DSN=test;UID=;PWD=;Database=Kpi" With ActiveSheet.QueryTables.Add(Connection:=connstring , Destination:=Range("A1"), SQL:=sqlstr).Refresh End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
problem updating link from Novell server to windows server #REF er | Excel Discussion (Misc queries) | |||
ADO connection problem when using server | Excel Programming | |||
query problem after changing to SQL server | Excel Discussion (Misc queries) | |||
Problem linking with SQL Server | Excel Programming | |||
Problem linking with SQL Server | Excel Programming |