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: 3
Default Running a query based off values in col A

I have a macro that pulls data from an extranal websit.

The values return look like this

861
913
315
407
570

These are area code

Based off the value I need to query our database via ODBC
Select Count(*) from Table where Telephone is like value in A1
Select Count(*) from Table where Telephone is like value in A2
Select Count(*) from Table where Telephone is like value in A3
Select Count(*) from Table where Telephone is like value in A4
etc

I only need to see the count return to Column B

Any ideas on how to proceed

Thanks
Steve



 
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
Help on Running Query jackle Excel Discussion (Misc queries) 5 January 25th 06 09:47 PM
Running Query Krish Excel Worksheet Functions 0 November 10th 05 07:42 PM
Running a saved query Leo Excel Programming 0 May 27th 04 02:17 PM
running a Database Query Tom S[_3_] Excel Programming 1 January 14th 04 08:59 PM
Running Query on a record set James Cameron Excel Programming 1 September 19th 03 04:13 PM


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