Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Wildcard character with Select Statement

What is wrong with my snytax? I've created a macro to
retrieve info from an Access table. Here is the query
passed to the connection object:

strSQL = "SELECT value FROM " & strTable & " WHERE
PageRef LIKE '??10'"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Wildcard character with Select Statement

Your SQL statement works for me as printed (I created a database to test
it). What is the exact error message you are getting?

strSQL = "SELECT Value FROM " & strTable & _
" WHERE PageRef LIKE '??10'"

Shockley


"Mike" wrote in message
...
What is wrong with my snytax? I've created a macro to
retrieve info from an Access table. Here is the query
passed to the connection object:

strSQL = "SELECT value FROM " & strTable & " WHERE
PageRef LIKE '??10'"



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
Wildcard character in an "If" statement? ttretta Excel Worksheet Functions 13 April 3rd 23 04:31 PM
USE A WILDCARD CHARACTER IN A FORMULA No_1rebecca Excel Worksheet Functions 3 August 13th 08 08:45 PM
Wildcard character agenda9533 Excel Discussion (Misc queries) 1 May 11th 05 05:11 PM
Wildcard Character John Excel Worksheet Functions 7 November 30th 04 10:54 PM
wildcard character replacement help WDP[_2_] Excel Programming 0 August 20th 03 08:11 PM


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