Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Rone
 
Posts: n/a
Default Problem with SQL "Like" clause in Excel

I'm having a bit of difficulty running a basic SQL query using excel. I'm
connected to a Microsoft Access.

Here is the SQL I am using:

SELECT count(*) FROM 3_REPORT WHERE CallType = 3 AND PartyIDName Like '*fax*';

If I run this SQL inside Access it will run just fine and return the count
of rows just like I want. However, when I put it into the VBA it returns "0"
as the row count, but I know there are 192 rows. Is there a problem with the
"Like" clause and the VBA?

I'm not sure where to go from here. Any help will be appreciated.

Thanks.
--
Rone
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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Problem displaying recordsets in Excel Format David Alexander Excel Discussion (Misc queries) 2 February 27th 06 04:52 PM
Excel 2000 problem copying drawingobjects between sheets SiriS Excel Discussion (Misc queries) 0 February 8th 06 10:31 AM
Strange problem....excel not responding sacrum Excel Discussion (Misc queries) 3 January 24th 06 08:47 PM
Problem with Excel 2003 restricting functionality matthewDBS Excel Discussion (Misc queries) 1 August 12th 05 07:44 PM


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

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

About Us

"It's about Microsoft Excel"