Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dean
 
Posts: n/a
Default Combo box from MSQuery

I would like to be able to run the following query when ever a user clicks
the down arrow on a Combo box, and have the output returned to the list for
the user to select from. How?

or instead of the query below is there another, easier way to return info
from an MS Query into the drop down list of a list/Combo box, for the user to
select an item from and then have an action carried out on the ouput?

Thanks in advance

Dean

With ActiveSheet.QueryTables.Add(Connection:= _
"ODBC;DSN=Exceed;UID=deletedr;PWD=deleted;SERVER=d eleted;",
Destination:=Range _
("C6"))
..CommandText = Array("Select Loc.Loc" & Chr(13) & "" & Chr(10) & "From
DC5999D.Loc Loc")
..Name = "Query from Exceed"
..FieldNames = True
..FillAdjacentFormulas = False
..PreserveFormatting = True
..RefreshOnFileOpen = False
..BackgroundQuery = True
..RefreshStyle = xlInsertDeleteCells
..SavePassword = True
..SaveData = True
..AdjustColumnWidth = True
..RefreshPeriod = 0
..PreserveColumnInfo = True
..Refresh BackgroundQuery:=False
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
Getting A Value from a Combo Box to a Cell?? RP1507 Excel Discussion (Misc queries) 1 July 13th 05 03:14 PM
Nesting Combo Boxes /Returning an Array ELMONDO SNITHER Excel Discussion (Misc queries) 1 June 30th 05 01:15 AM
Dynamic Combo Box benjarfer Excel Worksheet Functions 2 April 8th 05 02:17 PM
connecting combo boxes to yield data in another cell. TxN8tv Excel Discussion (Misc queries) 0 March 14th 05 04:07 PM
dynamic combo boxes tjb Excel Worksheet Functions 2 January 25th 05 07:33 PM


All times are GMT +1. The time now is 02:17 AM.

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"