LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Selection.QueryTable problem

Hi,

I am trying to use the following in an excel (2003) spread sheet:

With Selection.QueryTable
..Connection= "ODBC;DSN=Live;UID=admin;;SERVER=LIVE;DBNAME=DATA; LUID=admin;"
.CommandText = strSelectStatement
.Refresh BackgroundQuery:=False
End With

and I keep getting :

Error Number: 1004
Error Description: Application-defined or object-defined error

I have had a quick look at the help files and online and have tried a number
of alternatives but with no success.

Any help/tips greatly appreciated.

Thanks,
J
 
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
Selection problem Just wondering Excel Discussion (Misc queries) 2 November 6th 09 01:54 AM
Problem of selection.delete Radhakrishna k.v.n.r[_2_] Excel Worksheet Functions 7 October 27th 07 11:50 AM
Selection problem with recorder brian Excel Discussion (Misc queries) 2 September 19th 06 12:24 AM
Cannot Group that selection Problem PFL Excel Discussion (Misc queries) 5 January 5th 05 02:07 AM
range selection problem derekc[_12_] Excel Programming 2 June 18th 04 04:41 PM


All times are GMT +1. The time now is 12:18 PM.

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

About Us

"It's about Microsoft Excel"